Feature Description
One of the distinctive features of pdm is it's powerful script support.
When you add a custom script pdm allow you to set various options.
It would be useful extend pdm run to set / override dynamically these values.
Problem and Solution
Apart from the "general usefulness", I have two different use cases in my mind:
- I have multiple
.env files and this would allow me to setup a start script running my command, and run pdm run start for the "normal" behavior and pdm run start --env-file .env.staging if I want to run my project aganinst another environment without the need to create a "clone" start-staging script
- I have some
composite scripts that relies on a .env file. While normally pdm run my-composite works, sometimes I need to run the single commands, and this would allow me to do it quickly without the need to comment out the rest of the script
Additional Context
No response
Are you willing to contribute to the development of this feature?
Feature Description
One of the distinctive features of pdm is it's powerful script support.
When you add a custom script pdm allow you to set various options.
It would be useful extend
pdm runto set / override dynamically these values.Problem and Solution
Apart from the "general usefulness", I have two different use cases in my mind:
.envfiles and this would allow me to setup astartscript running my command, and runpdm run startfor the "normal" behavior andpdm run start --env-file .env.stagingif I want to run my project aganinst another environment without the need to create a "clone"start-stagingscriptcompositescripts that relies on a.envfile. While normallypdm run my-compositeworks, sometimes I need to run the single commands, and this would allow me to do it quickly without the need to comment out the rest of the scriptAdditional Context
No response
Are you willing to contribute to the development of this feature?