Skip to content

Instantly share code, notes, and snippets.

@lmayorga1980
Created January 11, 2020 15:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lmayorga1980/132af6841e1deae68f4e4d0a85ea61d0 to your computer and use it in GitHub Desktop.
Save lmayorga1980/132af6841e1deae68f4e4d0a85ea61d0 to your computer and use it in GitHub Desktop.
Click Subcommands
import click
@click.group()
def account():
pass
@account.command()
def list():
click.echo('This is the list command')
@click.group()
def cli():
pass
cli.add_command(account)
if __name__ == '__main__':
cli()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment