-
Notifications
You must be signed in to change notification settings - Fork 33
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
Remove ogier/pflag #193
Comments
not to mention that, opposite to #195, we can be backward compatible |
I made a small comparison between viper and flag. We try to minimize dependencies we are using in the code. Viper looks nice but we don't need most of it's features Changing from ogier to viper only to have live and supported project as a dependency is pointless. I hope reducing one dash (
⁺ nobody requested it |
So because nobody asks for a feature (which is just best practice) it's not a feature to have?
One big point I mention was the link with
Of course, everything is optional and an application can live without it... but it's just today right here, we have vendoring, why not using it "for free"? |
Personally, I found https://github.com/jawher/mow.cli which works best for me. You could consider it if you like. |
Thanks for response. Indeed I forgot about some features of cobra/viper that we might want. I'm not familiar with this tools so I'm not a fan of it. From my perspective ogier does nothing to help us and that's why I want to remove it. Adding new dependency (outside of stdlib) means somebody need to watch it and update when there are bugs to prevent users of marathon-consul to be hit by an error in our dependencies. On the other hand, some features would be really nice:
|
Combo Viper & Cobra looks nice :) |
Anny update on this? Does anybody want to prepare PR with better configs handling? |
We are using
ogier/pflag
because it was introduced in original CiscoCloud project. pflag looks like abandoned (last commit over a year ago). We should switch to official golang flags. This change could be not backward compatible because ogier uses double dash--
while golang prefers-
(see this comment)The text was updated successfully, but these errors were encountered: