Skip to content

Commit

Permalink
print the command being run so we can run it by hand if it fails
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdonc committed Jan 28, 2024
1 parent 6048f1e commit f294626
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/devenv/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,8 +507,12 @@ def container(ctx, registry, copy, copy_args, docker_run, container_name):
if docker_run:
registry = "docker-daemon:"

cp = f"{copy_script} {spec} {registry or 'false'} {copy_args or ''}"

log(f"Running '{cp}'", level="info")

subprocess.run(
f"{copy_script} {spec} {registry or 'false'} {copy_args or ''}",
cp,
shell=True,
check=True,
)
Expand Down Expand Up @@ -681,8 +685,7 @@ def add(ctx, name, url, follows):
)
@click.argument("names", nargs=-1)
@click.option("--debug", is_flag=True, help="Run tests in debug mode.")
@click.option(
"--keep-going", is_flag=True, help="Continue running tests if one fails.")
@click.option("--keep-going", is_flag=True, help="Continue running tests if one fails.")
@click.pass_context
def test(ctx, debug, keep_going, names):
ctx.invoke(assemble)
Expand Down

0 comments on commit f294626

Please sign in to comment.