Hello, what goal do I specify if I want to run she...
# general
b
Hello, what goal do I specify if I want to run shell_commands e.g my BUILD file looks like this, and all I want to run is the shell command
Copy code
docker_image(
    name="docker-hub-and-spoke",
)

shell_command(
    name="testdeploy",
    command="ls -ltr",
)
c
In order to
pants run ../../:testdeploy
you want to use the
run_shell_command
target: https://www.pantsbuild.org/docs/reference-run_shell_command
1
b
Thats exactly what I was looking for. Thanks
👍 1
One more item, if I have multiple shell_commands, is there any way to filter based on the name
Copy code
pants --filter-target-type=run_shell_command --changed-since=DEV-1765 --changed-dependents=transitive list
Want to run something like that but with name filter
c
ah, no, you may want to look into using tags in that case.
1