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

Find project root if the current working directory is one of its sub-paths #2

Open
machitgarha opened this issue Mar 31, 2022 · 1 comment

Comments

@machitgarha
Copy link
Owner

Currently, for invoking Parvaj, you must be in the project root. This could be annoying for some, e.g. one is using a console-based text editor like Vim, so he may keep moving around directories.

If you are using Parvaj and want this to be implemented, react this thread with a thumbs-up.

@machitgarha
Copy link
Owner Author

One obvious solution is to crawl up the directories until we find the project root. However, there must be a way to know we reached it.

A possible solution to this is to have a file (e.g. parvaj.json or parvaj.yml, which might be used for future configurations as well) there, and scan for it everytime we go up in the path. This could be either created manually or automatically, however, being created automatically needs to have an initial successful Parvaj invocation in the project root.

Another way is to have a global configuration file to specify root of known projects. Like the previous, it could be specified either manually or automatically.

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