-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Partial Revert of #922 #1068
Partial Revert of #922 #1068
Conversation
fixes: #1056 |
Issue Reference: spf13#1056 spf13#922 introduced a new error type that emitted when a command was not runnable. This caused all commands w/o a run function set to error w/ that message and a status code of 1. This change reverts the addition of that new error. Similar functionality can be accomplished by leveraging RunE.
4f90763
to
bdb602d
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.
LGTM, but I would not review anymore as the PRs I review end up being reverted haha 😅
I didn't contribute in cobra since 2018, so I already lost the context :( |
@jharshman Thanks for the quick fix! Do you plan on releasing a new version of cobra soon? |
@ob-stripe it's already been released. |
🚀 Amazing, thanks! |
Issue Reference: #1056
Bug Introduced: #922
#922 Introduced a new error type that emitted when a command was not runnable. This caused all commands w/o a run function set to error w/ that message and a status code of 1.
This change reverts the addition of that new error. Similar
functionality can be accomplished by leveraging RunE.