7
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-06-01 22:00:48 +00:00

Fix new dc command

This commit is contained in:
Régis Behmo 2020-11-16 15:36:23 +01:00 committed by Régis Behmo
parent cacb4f4cfd
commit 185ac3a7c4

View File

@ -206,12 +206,11 @@ def dc_command(context, args):
context_settings={"ignore_unknown_options": True},
)
@click.argument("args", nargs=-1, required=True)
@click.pass_obj
def run(args):
command = ["run", "--rm"]
if not utils.is_a_tty():
command.append("-T")
dc_command.callback(command + args)
dc_command.callback([*command, *args])
@click.command(
@ -226,7 +225,7 @@ def run(args):
)
@click.argument("args", nargs=-1, required=True)
def execute(args):
dc_command.callback(["exec"] + args)
dc_command.callback(["exec", *args])
@click.command(