Skip to content

Commit

Permalink
Added help to commands
Browse files Browse the repository at this point in the history
  • Loading branch information
jaypikay committed Jan 13, 2023
1 parent 85c8472 commit 36db6d8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions doxy/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def main(ctx):
ctx.obj["CONFIG"] = CONFIG


@click.command()
@click.command(help="list available services")
def list():
print(Rule(f"Listing services"))
tree = Tree("[bold]Available Services")
Expand All @@ -41,7 +41,7 @@ def complete_service_name(ctx, param, incomplete):
]


@click.command()
@click.command(help="edit the compose file")
@click.argument("service", nargs=1, shell_complete=complete_service_name)
@click.pass_context
@services.only_if_service_exists
Expand All @@ -56,7 +56,8 @@ def edit(ctx, service):
@click.command(
context_settings=dict(
ignore_unknown_options=True,
)
),
help="run docker-compose commands",
)
@click.argument("service", nargs=1, shell_complete=complete_service_name)
@click.argument("command", nargs=-1)
Expand Down

0 comments on commit 36db6d8

Please sign in to comment.