Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add project path argument while running pdm venv command #2042

Closed
zhupengjia opened this issue Jun 20, 2023 · 1 comment · Fixed by #2048
Closed

Add project path argument while running pdm venv command #2042

zhupengjia opened this issue Jun 20, 2023 · 1 comment · Fixed by #2048
Labels
⭐ enhancement Improvements for existing features 💝 good first issue Good for newcomers ❓ help wanted Extra attention is needed

Comments

@zhupengjia
Copy link

Is your feature request related to a problem? Please describe.

I often find it frustrating when trying to run the pdm venv command without being able to specify the project path. Currently, the command assumes that the project is located in the current working directory, which can be inconvenient in certain scenarios.

Describe the solution you'd like

I would like to propose adding a project path argument to the pdm venv command. This would allow users to specify the path to their project directory when creating a virtual environment. This feature would provide more flexibility and convenience, especially for projects that are not located in the current working directory.

By adding the project path argument, users can easily create virtual environments for projects located in different directories without having to navigate to each project's directory first. This would streamline the workflow and save time for developers working with multiple projects simultaneously.

Overall, the addition of the project path argument to the pdm venv command would greatly enhance the usability and flexibility of the PDM tool.

@zhupengjia zhupengjia added the ⭐ enhancement Improvements for existing features label Jun 20, 2023
@frostming
Copy link
Collaborator

SGTM, I will leave it as contributor friendly and PR is welcomed.

It would be as easy as adding the project_option to the options list at:

arguments: list[Option] = []

@frostming frostming added ❓ help wanted Extra attention is needed 💝 good first issue Good for newcomers labels Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⭐ enhancement Improvements for existing features 💝 good first issue Good for newcomers ❓ help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants