https://pantsbuild.org/ logo
i

incalculable-grass-76623

07/19/2022, 2:33 AM
Hi, a quick question regarding
experimental_shell_command
I am new to pants, so something may be obvious but I can seem to get it. I am using
experimental_shell_command
to "run a docker image", built in a preious step, that has tooling inside of it. think like code generation. How do I "run" the
experimental_shell_command
task, as a goal or other .. eg:
Copy code
experimental_shell_command(
    command="docker run --rm -t -v `pwd`:/v --workdir /v schema-tooling sh -c 'echo 1 > results.log'",
    tools=["docker"],
    dependencies=["datamodel/schema-tooling:schema-tooling"],
    outputs=["results.log"],
)
w

witty-crayon-22786

07/19/2022, 3:25 AM
you probably want
experimental_run_shell_command
for that: see https://www.pantsbuild.org/docs/run-shell-commands for the difference
i

incalculable-grass-76623

07/19/2022, 4:28 AM
Thank you, - i flipped over the "task" but I still don't know how to "run" it
okay never mind - worked it out .. just
./pants run <path>
4 Views