How to use the click.group function in click

To help you get started, we’ve selected a few click examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aiidateam / aiida-quantumespresso / aiida_quantumespresso / cli / cli.py View on Github external
@click.group('aiida-quantumespresso', context_settings={'help_option_names': ['-h', '--help']})
@options.PROFILE(type=types.ProfileParamType(load_profile=True))
def root(profile):  # pylint: disable=unused-argument
    """CLI for the `aiida-quantumespresso` plugin."""
github IKNL / vantage / vantage6_server / vantage6 / server / cli / server.py View on Github external
@click.group(name='server')
def cli_server():
    """Subcommand `vserver-server`."""
    pass
github blockchain-etl / ethereum-etl / ethereumetl / cli / __init__.py View on Github external
@click.group()
@click.pass_context
def cli(ctx):
    pass
github EUDAT-B2SHARE / b2share / b2share / modules / communities / cli.py View on Github external
@click.group()
def communities():
    """communities management commands."""
github fredrik-corneliusson / click-web / example / example_command.py View on Github external
@click.group()
@click.option("--debug/--no-debug", help='set debug flag')
def cli(debug):
    'An example click script to test click-web'
    global DEBUG
    DEBUG = debug
github snapcore / snapcraft / snapcraft / cli / extensions.py View on Github external
@click.group()
def extensioncli(**kwargs):
    pass
github nir0s / ghost / ghost.py View on Github external
@click.group(context_settings=CLICK_CONTEXT_SETTINGS)
def main():
    """Ghost generates a secret-store in which you can
    keep your secrets encrypted. Ghost isn't real. It's just in your head.