jeftadlvw / git-nest

Nest external repositories into your project without git being bothered.
https://github.com/jeftadlvw/git-nest
Apache License 2.0
1 stars 1 forks source link

🐛 correct error and exit status handling #32

Closed jeftadlvw closed 4 months ago

jeftadlvw commented 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.

Cobra has this functionality built-in:

I see no reason to not utilize RunE instead of Run.