You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is possible to remove one layer of logic (and tests) in flag handling by replacing the config.Xxx = viper.GetXxx("xxx") calls (and the ifology for default values) by the unmarshaler in viper.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
It is possible to remove one layer of logic (and tests) in flag handling by replacing the config.Xxx = viper.GetXxx("xxx") calls (and the
if
ology for default values) by the unmarshaler in viper.Context: https://github.com/Kong/kubernetes-ingress-controller/pull/866/files#r492612779
A possible extension of this task would be using
cobra
to wrap the flags in the context of acobra.Command
instead of defining them globally inmain
.The text was updated successfully, but these errors were encountered: