Coverage for /home/agp/Documents/me/code/brotation/brotation/cli.py : 32%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1"""Console script for brotation."""
2import wingdbstub
3import sys
4import click
7@click.group()
8def backup():
9 pass
12@backup.command()
13@click.option('-w', '--where', 'where')
14@click.option('-f', '--folders', 'folders')
15def backup():
16 """Command on cli1"""
19@click.group()
20def restore():
21 pass
24@restore.command()
25def cmd2():
26 """Command on cli2"""
29main = click.CommandCollection(sources=[backup, restore])
31if __name__ == '__main__':
32 sys.exit(main()) # pragma: no cover
35@click.command()
36def main(where, folders):
37 click.echo(where)
38 click.echo(folders)
41# @click.command()
42# def main(args=None):
43 #"""Console script for brotation."""
44 # click.echo("Replace this message by putting your code into "
45 # "brotation.cli.main")
46 #click.echo("See click documentation at https://click.palletsprojects.com/")
47 # return 0
50if __name__ == "__main__":
51 sys.exit(main()) # pragma: no cover