You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a recurring structure given Sphinx's proposed setup.
There are commands that can only be ran in the docs/ directory, due to the nature of make that uses the Makefile available at the root of the current working directory.
Describe the solution you'd like
This key, which could be called cwd, or in_path, or any given suggestion, would provide an OS-agnostic way to set the current working directory.
When a command will be running, and this property is set with a relative path (In this example ./docs), PDM should come back to the root of the project (pdm info --where), so that moving in directories is seamless, and would not surprise us in case our current working directory was in src/my_package, for example.
Alternatively, this could be done by using operators like && in a shell script, but such operator (In my knowledge) could be different depending on the OS used.
Adding such key would, in my opinion, increase confidence when creating new scripts that require to move to specific directories.
I am willing to work on this issue and submit a PR.
The text was updated successfully, but these errors were encountered:
Is your feature/enhancement proposal related to a problem? Please describe.
This issue suggest adding a new key for commands defined under
tool.pdm.scripts
, to set the current working directory before running the given action.Consider the following project structure:
This is a recurring structure given Sphinx's proposed setup.
There are commands that can only be ran in the
docs/
directory, due to the nature ofmake
that uses theMakefile
available at the root of the current working directory.Describe the solution you'd like
This key, which could be called
cwd
, orin_path
, or any given suggestion, would provide an OS-agnostic way to set the current working directory.When a command will be running, and this property is set with a relative path (In this example
./docs
), PDM should come back to the root of the project (pdm info --where
), so that moving in directories is seamless, and would not surprise us in case our current working directory was insrc/my_package
, for example.Alternatively, this could be done by using operators like
&&
in a shell script, but such operator (In my knowledge) could be different depending on the OS used.Adding such key would, in my opinion, increase confidence when creating new scripts that require to move to specific directories.
I am willing to work on this issue and submit a PR.
The text was updated successfully, but these errors were encountered: