Closed jeftadlvw closed 4 months ago
Currently, command handling functions don't return an error, and no actual errors are handled at the root command. Thus, git-nest returns an exit status of 0, which is false behaviour when errors do occur.
0
Cobra has this functionality built-in:
I see no reason to not utilize RunE instead of Run.
RunE
Run
Currently, command handling functions don't return an error, and no actual errors are handled at the root command. Thus, git-nest returns an exit status of
0
, which is false behaviour when errors do occur.Cobra has this functionality built-in:
I see no reason to not utilize
RunE
instead ofRun
.