Skip to content
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

fix(kit/cli): don't ignore failures to mark CLI options as required #20490

Merged
merged 4 commits into from
Jan 13, 2021

Conversation

danxmoran
Copy link
Contributor

Closes #20394

We can only mark a flag as required after it's been registered in the cobra.Command.

@danxmoran danxmoran force-pushed the dm-no-ignore-err-cli-required-20394 branch from a49711a to 17eb99d Compare January 11, 2021 19:09
@danxmoran danxmoran requested a review from lesam January 11, 2021 19:20
kit/cli/viper.go Outdated Show resolved Hide resolved
@danxmoran danxmoran force-pushed the dm-no-ignore-err-cli-required-20394 branch from 17eb99d to 561d054 Compare January 12, 2021 18:34
@danxmoran danxmoran force-pushed the dm-no-ignore-err-cli-required-20394 branch from 561d054 to 0e53755 Compare January 12, 2021 18:41
@danxmoran danxmoran requested a review from lesam January 12, 2021 18:42
Copy link
Contributor

@lesam lesam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@danxmoran danxmoran merged commit 78af2e7 into master Jan 13, 2021
@danxmoran danxmoran deleted the dm-no-ignore-err-cli-required-20394 branch January 13, 2021 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CLI helpers silently fail to mark options as required
2 participants