-
Notifications
You must be signed in to change notification settings - Fork 8
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
Required flags #2
Comments
I kind of get the explanation in the upstream issue, params validation is more of a "business logic". I'd implement it as preconditions in the command, e.g.: |
Yeah, that would obviously work 👍 Normally I guess the added benefit (of having this possible in library) is that:
|
Hmm we might want to look at this: urfave/cli#140 |
There's also a 4 yo PR ;) |
we might as well migrate to cobra library (used by kubectl) |
🎁 I come bearing gifts! 🎁 urfave/cli#819 |
fixed in v0.2.3 |
It would be nice to enforce required flags and validate them (if nil or empty) before executing any encrypt/decrypt action.
Few examples of required flags:
gcp:
--location
,--project
,key
,keyring
aws:
--region
,key-id
etc.
Unfortunately, library what we use doesn't support
Required Flags
.urfave/cli#85 - issue is still open
The text was updated successfully, but these errors were encountered: