feat: modify return codes

Modify exit codes. `cheat` now returns an exit code value `2` on errors
pertaining to a cheatsheet not being found.

BREAKING CHANGE
This commit is contained in:
Chris Lane
2020-06-25 18:38:03 -04:00
parent 59d5c96c24
commit 49afd7c16b
6 changed files with 22 additions and 6 deletions

View File

@@ -39,7 +39,7 @@ func cmdView(opts map[string]interface{}, conf config.Config) {
sheet, ok := consolidated[cheatsheet]
if !ok {
fmt.Printf("No cheatsheet found for '%s'.\n", cheatsheet)
os.Exit(0)
os.Exit(2)
}
// apply colorization if requested