-
Notifications
You must be signed in to change notification settings - Fork 105
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
Adding CLI validation #8
Conversation
I'm leaning towards removing any flexibility. It MUST validate as DOMAIN/NS/NAME. Makes expectations and comparisons easier later. Will update. |
5d9b3a3
to
41a5d7b
Compare
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.
@f5yacobucci
please see my comments and suggestions
46f6b35
to
dfa955d
Compare
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.
I like the new design.
I left some non-critical comments and suggestions, so approving 👍
Validate input parameter. Users can input entire DOMAIN/NS/NAME path, or leave some elements off. Gateway will use defaults for missing elements.
- Making domain our API group - Removed superfluous 'required' arg to GatewayControllerParam - Single return Validator - Reworked argument validators - standardized output - no mixed structured and unstructured logging to stdout for arguments - added Must validator (exists on error) - param validator dynamically gets its value, only arguments are external constraints
Table testing Stderr Squash
1fd3d91
to
ed4ae77
Compare
* Adding CLI validation Validate input parameter. Users can input entire DOMAIN/NS/NAME path, or leave some elements off. Gateway will require all elements. Created Validator pattern. Each argument requiring Validation should provide a Validator. The callback will be provided a FlagSet for referencing other arguments and the particular flag value for validation.
Validate input parameter.
Users must input entire DOMAIN/NS/NAME path off.