Add support for logs command args (#478)

This commit was merged in pull request #478.
This commit is contained in:
2023-07-31 22:10:37 -06:00
committed by GitHub
parent 5afe7a29ae
commit 6a0a752e2e
3 changed files with 21 additions and 7 deletions
+4 -2
View File
@@ -119,11 +119,13 @@ def exec(ctx, extra_args):
@command.command()
@click.option("--tail", "-n", default=None, help="number of lines to display")
@click.option("--follow", "-f", is_flag=True, default=False, help="follow log output")
@click.argument('extra_args', nargs=-1) # help: command: logs <service1> <service2>
@click.pass_context
def logs(ctx, extra_args):
def logs(ctx, tail, follow, extra_args):
ctx.obj = make_deploy_context(ctx)
logs_operation(ctx, extra_args)
logs_operation(ctx, tail, follow, extra_args)
@command.command()