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
cmd: extend decode cmd to print any field #519
Conversation
Signed-off-by: Neil Shen <overvenus@gmail.com>
// cmd.PrintErr prints to stderr, but PrintErrf prints to stdout. | ||
cmd.PrintErr(fmt.Sprintf("Detail BR log in %s \n", conf.File.Filename)) |
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.
lol a bug fix spf13/cobra#894 has been submitted but stay unmerged for over a year because some dependencies now relied on the bug (classic xkcd-1172 scenario)
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.
A bug becomes a feature 🤯
Signed-off-by: Neil Shen <overvenus@gmail.com>
Signed-off-by: Neil Shen <overvenus@gmail.com>
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.
LGTM
LGTM |
Signed-off-by: Neil Shen <overvenus@gmail.com>
What problem does this PR solve?
Extend decode cmd to print any field
Check List
Tests
Related changes
Release Note