Coverage for docs_src / using_click / tutorial002_py39.py: 100%
12 statements
« prev ^ index » next coverage.py v7.13.1, created at 2026-02-09 12:36 +0000
« prev ^ index » next coverage.py v7.13.1, created at 2026-02-09 12:36 +0000
1import click 1abcdefgh
4@click.group() 1abcdefgh
5def cli(): 1abcdefgh
6 pass 1abcdefgh
9@click.command() 1abcdefgh
10def initdb(): 1abcdefgh
11 click.echo("Initialized the database") 1abcdefgh
14@click.command() 1abcdefgh
15def dropdb(): 1abcdefgh
16 click.echo("Dropped the database") 1abcdefgh
19cli.add_command(initdb) 1abcdefgh
20cli.add_command(dropdb) 1abcdefgh
23if __name__ == "__main__": 1abcdefgh
24 cli() 1abcdefgh