some-furniture-64470
01/03/2025, 8:56 PMopenapi.json
file and the Python SDK client. I used a code assistant to help but it got lost trying to create a plugin that never worked and I am not even sure it is the right way
2. Use a shell_command
, I set it up like this:
shell_command(
command="./scripts/generate-python-sdk.sh", # my script to execute
tools=["jq", "echo", "bash", "mkdir", "tar"],
output_directories=["python-sdk"], # where the python client package should be generated
execution_dependencies=[
"//scripts:scripts0", # the folder containing my scripts
":reqs", # my python requirements
"//myservice/api/routers:routers", # the subpackage where my routers are implemented
],
)
But I don't see anywhere how to use this command to go further, nor how to test it. Thanks a lot for your helpgifted-lunch-20593
01/07/2025, 10:34 PMrun_shell_command
and run itsome-furniture-64470
01/08/2025, 1:54 AMpants run $NAME_OF_MY_RUN_SHELL_COMMAND
?gifted-lunch-20593
01/08/2025, 1:38 PMrun_shell_command(
name="foo",
dependencies=[":some_shell_command_name"],
command="exit 0", # if you just want to run shell command
)
# then in shell
pants run path/to/folder:foo