-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Better handling of per-command default values #4209
Better handling of per-command default values #4209
Conversation
Codecov Report
|
a01a542
to
30c6691
Compare
e2bda9b
to
62f5a73
Compare
Signed-off-by: David Gageot <[email protected]>
62f5a73
to
6b79607
Compare
|
||
t.CheckDeepEqual(false, opts.Tail) | ||
t.CheckDeepEqual(false, opts.Force) | ||
t.CheckDeepEqual(false, opts.Force) |
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.
opts.EnableRPC
?
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.
Good catch!. I'll fix that
|
||
t.CheckDeepEqual(true, opts.Tail) | ||
t.CheckDeepEqual(false, opts.Force) | ||
t.CheckDeepEqual(false, opts.Force) |
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.
opts.EnableRPC
?
|
||
t.CheckDeepEqual(true, opts.Tail) | ||
t.CheckDeepEqual(true, opts.Force) | ||
t.CheckDeepEqual(true, opts.Force) |
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.
opts.EnableRPC
?
Common flags can now have a default value that's different based on the command.
Signed-off-by: David Gageot [email protected]