Add documentation on exit status codes to man pages

This is step one to start defining useful exit codes for all the commands.
This commit is contained in:
Erik Rigtorp authored and Leo R. Lundgren committed 2020-02-12 23:09:26 +01:00
1 parent 4615bdfd70
commit 94f4f13388
27 files changed
+144 -3

No files matched your search

+5
View File
@@ -12,6 +12,11 @@ var cmdInit = &cobra.Command{
Short: "Initialize a new repository",
Long: `
The "init" command initializes a new repository.
EXIT STATUS
===========
Exit status is 0 if the command was successful, and non-zero if there was any error.
`,
DisableAutoGenTag: true,
RunE: func(cmd *cobra.Command, args []string) error {