Partial Revert of #922 (#1068)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Issue Reference: https://github.com/spf13/cobra/issues/1056 https://github.com/spf13/cobra/pull/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.
authored by Joshua Harshman · committed by GitHub · parent 95f2f73 · Browse files · 2 files+3 added−14 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+3 added−14 removed
- other:+3 added−14 removed