-
Notifications
You must be signed in to change notification settings - Fork 772
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 flags global which are common #514
Comments
but Shouldn't be global parameters valid for all (up,down,convert) commands? |
@kadel didn't think about that! just thought about the repetition! |
agreed that repetition is ugly, and we should figure out how to reuse flags between But solution shouldn't be making it global, because that we will have to ignore some flags for commands where it doesn't make sense, and thist might be even more confusing :-( |
I think we can remove the
|
yes we should do that. but we still have same flags defined in two places. |
@kadel Unfortunately I don't think there is a way to define a global parameter and remove it from only one particular one. Having it in both up.go and convert.go seems the best bet. At least it's better than how we did it with urfave/cli 👍 |
I've some ideas that might work, but I have to try it |
Hey @kadel emptyvols and replicas was removed from Kompose down, should we close this issue or is there anything else we need to discuss to refactor this? |
Going to close this for now, let's re-open at a later-date if we find a refactor for global flags 👍 |
flags like
replicas
and other flags that are repeating should be implemented only once, which means make it global.This came to my mind after reading #506
The text was updated successfully, but these errors were encountered: