You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Usage:
config [command]
Available Commands:
get
set
Flags:
-h, --help helpfor config
Use " config [command] --help"for more information about a command.
hi
Description
When I execute a job on our task center, I need to get the final result of the execution, for example:
myapp job1 args1
When job1 doesn't exist, I can get the error:
Then the task center can be accessed by
echo $?
to get the final execution result.However, when I use a subcommand, I can't get the error.
How to reproduce
For example :
When I execute:
I can get the following prompt without an error.
Expectations
Need to return error
Is there some special consideration here?
https://github.com/spf13/cobra/blob/main/command.go#L1123
The text was updated successfully, but these errors were encountered: