python-click/examples/complex/complex/commands/cmd_status.py

12 lines
286 B
Python
Raw Normal View History

2020-07-21 08:23:42 +02:00
from complex.cli import pass_environment
2014-10-16 20:40:34 +02:00
import click
2020-07-21 08:23:42 +02:00
@click.command("status", short_help="Shows file changes.")
@pass_environment
2014-10-16 20:40:34 +02:00
def cli(ctx):
"""Shows file changes in the current working directory."""
2020-07-21 08:23:42 +02:00
ctx.log("Changed files: none")
ctx.vlog("bla bla bla, debug info")