-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
File paths and altsrc #666
Comments
👍 I agree with these three assertions, can you qualify which are not currently met? |
It depends on the implementation. In my case the last one is failing. If there is a way to find out what is the source of a flag - I would easily fix it. |
I solved it with custom PathFlag. Do you fancy PR? The only caveat is - how I know the directory where the config file is in the PathFlag ApplyInputSourceValue? |
You should be able to get the current working directory via |
What I mean is that in ApplyInputSourceValue don't have the flag name for the configuration file. |
And that's what I mean :) https://github.com/urfave/cli/pull/670/files#diff-b409136834e66f5a239c3d6ca4df876dR255 . How you think it will be best to fix that? Put it in the context may be? |
Hiya! There's a known issue with the current implementation of the CLI, where altsrc is generally clunky and poorly documented. My current idea is that I'm going to move all of the |
When having a flag representing file path and using alternative sources if becomes hard to figure out what the file path is relative to.
I'm using v2 btw.
The text was updated successfully, but these errors were encountered: