-
Notifications
You must be signed in to change notification settings - Fork 78
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 support for reading command-line options from file(s) #191
Comments
/bounty $250 For the full functionality, implemented in a cross-platform setting, with full test suites, and descriptive help docs, and diagnostics. |
💎 $250 bounty • ZIOSteps to solve:
Additional opportunities:
Thank you for contributing to zio/zio-cli! Add a bounty • Share on socials
|
/attempt #191 |
@walesho: Reminder that in 7 days the bounty will become up for grabs, so please submit a pull request before then 🙏 |
The bounty is up for grabs! Everyone is welcome to |
@vidyasankarv: Reminder that in 7 days the bounty will become up for grabs, so please submit a pull request before then 🙏 |
The bounty is up for grabs! Everyone is welcome to |
Hi, |
/attempt #191 Options |
@thisisyoussef: Reminder that in 7 days the bounty will become up for grabs, so please submit a pull request before then 🙏 |
The bounty is up for grabs! Everyone is welcome to |
/attempt #191 Options |
@shubhi2000: Reminder that in 7 days the bounty will become up for grabs, so please submit a pull request before then 🙏 |
Hi, |
The bounty is up for grabs! Everyone is welcome to |
/attempt #191 Options |
@vivasvan1: Reminder that in 7 days the bounty will become up for grabs, so please submit a pull request before then 🙏 |
@jdegoes
However would love to know if my attempt is in the right direction. |
💡 @vivasvan1 submitted a pull request that claims the bounty. You can visit your bounty board to reward. |
@jdegoes am I able to attempt this? If so, please clarify the following questions:
|
/attempt #191 Options |
Note The user @vivasvan1 is already attempting to complete issue #191 and claim the bounty. We recommend checking in on @vivasvan1's progress, and potentially collaborating, before starting a new solution. |
@Kalin-Rudnicki I am almost done with this PR. Only the documentation is remaining as far as i understand. Let me know if you would like to collaborate on it. |
@vivasvan1, respectfully, I'd be trying to get the bounty 😂😜
Or
And also doesnt seem to handle the more complex cases of arg overriding base on hierarchy |
It's okay you can go ahead with a different PR ... although it would have been faster and easier for both by collaboration in my view. |
@Kalin-Rudnicki regarding the technicals, I believe my PR does handle i have tested for it as well.
And
Only remaining thing is printing the args. Thanks for pointing it out I had forgotten about it. 🙏 |
I will let ya go for it first :) |
💡 @Kalin-Rudnicki submitted a pull request that claims the bounty. You can visit your bounty board to reward. |
The users command-line app has a top-level command, whose name is
<name>
.For example, if the user was creating a word count CLI, then their top-level command name might be
wc
.ZIO CLI should examine the following locations to check for the existence of
.<name>
files:So, in the
wc
example, if run from/c/Users/john
directory, then ZIO CLI would look in the following locations for the existence of.wc
files:/c/Users/john
/c/
~
(user home, probably/c/Users/john
on Windows)Then, ZIO CLI should concatenate these options, with user home having the lowest priority, and the current working directory having the highest priority (so, for example, you can override options in higher priority locations).
Then, ZIO CLI should utilize those command-line options when the program is run, and not require those options be specified. However, if any option is specified on the command-line, then it must override even the highest priority setting specified in the settings files.
An example, let's say
wc
has an option--line-ending
. Then in the.wc
file, there might exist:Then this would be the default line ending. The user would not have to specify it on the command-line. But if the user did specify it on the command-line, it would override the one in the file.
This new functionality should be documented in the help docs for the CLI. Moreover, all of the settings that are picked up from any of the files need to be printed out, so the user can understand exactly where they are coming from.
The text was updated successfully, but these errors were encountered: