""" Library for the CLI commands and the related classes and functions """ import click as cli domain_pattern = r'^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$' # @TODO create regex pattern for matching IP addresses # ip_pattern = r'' @cli.group() @cli.option("-d", "--debug", type=bool, is_flag=True, default=True, help="Use debugging mode") @cli.pass_context def skansible(ctx, debug): ctx.ensure_object(dict) ctx.obj["DEBUG"] = True if __name__ == "__main__": skansible(obj={})