Created
January 11, 2020 15:13
-
-
Save lmayorga1980/132af6841e1deae68f4e4d0a85ea61d0 to your computer and use it in GitHub Desktop.
Click Subcommands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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