Skip to content

Clarify docs for --dir option #2123

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jberkenbilt
Copy link

See #2102. I think the actual behavior of --dir is useful and described correctly in the Getting Started section of the documentation, but the help and CLI reference don't explain it correctly.

The docs and help describe it as setting the working directory, but what it actually seems to do is to set the directory from which to start searching for a Taskfile. This is useful for running utility-like Taskfiles and seems like a useful feature that is distinct from setting the work directory. This PR just changes the docs to match the behavior. I'm not sure whether the behavior is wrong, but changing behavior would be non-compatible. Looking through the tests, I think the tool is behaving as intended, but the docs are misleading.

I just started playing with task today. If you agree with this but want to word it differently or update more docs or change tests, etc., you can discard this and do it a different way.

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

Successfully merging this pull request may close these issues.

1 participant