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

fix: run tasks in correct working directory #11

Closed
metaist opened this issue Jul 22, 2024 · 2 comments
Closed

fix: run tasks in correct working directory #11

metaist opened this issue Jul 22, 2024 · 2 comments

Comments

@metaist
Copy link
Owner

metaist commented Jul 22, 2024

Typically, we want to run commands relative to the configuration file. If we ever implement #10, this gets more complicated.

@metaist
Copy link
Owner Author

metaist commented Jul 22, 2024

Idea 1: Always change to the directory of the configuration file.

This is highly regular, but it can get weird if you supply a configuration file that's in some totally other project.

@metaist metaist reopened this Jul 22, 2024
@metaist
Copy link
Owner Author

metaist commented Jul 22, 2024

Idea 2: Add a flag --cwd PATH that lets you override the current working directory.

Not too bad. Similar to Idea 1, but would let you quickly make the current directory the active one: ds --cwd . create-app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant