-
Notifications
You must be signed in to change notification settings - Fork 362
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
make --config
a global option on rita
command
#631
Conversation
This is great, thank you! Do you think you could also migrate the
With these changes the config flag isn't recognized after the command. This invocation is what was needed prior to these changes and now produces an error. This could be a breaking change for some users.
Do you know if there's a urlfave/cli option to have the If there's not a simpler solution than putting the config flag back into all the subcommands and testing each case for both global and local config flags then I would rather we just announce the breaking change and possibly hold this until a major version bump. But if there's a clean fix that lets the flag be recognized anywhere then I'd be up for that to maintain backwards compatibility. |
Sure, will do that.
@ethack As per this issue, there are 2 ways to achieve this. We could do something like this or we can upgrade |
Signed-off-by: Vivek Kumar <[email protected]>
Signed-off-by: Vivek Kumar <[email protected]>
@ethack I have updated PR to make Current CLI behaviour is as follows - Command: Command: Commands: Behaviour: Closes #595 |
@ethack PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for the contribution!
This PR does the following:
--config
a global option on therita
command.--config
flag from subcommands (import
,html-report
etc.)GlobalString
to fetch config value from global state. For reference, see this issue.Closes #595