summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Unterwurzacher2017-05-14 14:34:50 +0200
committerJakob Unterwurzacher2017-05-14 14:34:50 +0200
commit22bac16201acfed2acfecdb709e3c6d06ae9572a (patch)
treee50257903eda4b097102d935cc45d164b9375d57
parentc44389d9422f31e0b462d1bcd47f80e95913cb60 (diff)
doc: update CLI_ABI.md with new exit codes
All exit codes that are likely to occour are listed.
-rw-r--r--Documentation/CLI_ABI.md29
1 files changed, 29 insertions, 0 deletions
diff --git a/Documentation/CLI_ABI.md b/Documentation/CLI_ABI.md
index efdf718..02fbc38 100644
--- a/Documentation/CLI_ABI.md
+++ b/Documentation/CLI_ABI.md
@@ -37,6 +37,14 @@ Content of "mypassword.txt":
1. The CIPHERDIR directory must exist and be empty
+#### Exit Codes
+
+* 0 = success
+* 6 = CIPHERDIR is invalid: not an empty directory
+* 22 = password is empty
+* 24 = could not create gocryptfs.conf
+* other = please inspect the message
+
Mount
-----
@@ -52,6 +60,14 @@ Same as for "Initialize Filesystem".
1. The MOUNTPOINT directory must exist and be empty.
+#### Exit Codes
+
+* 0 = success
+* 10 = MOUNTPOINT is not an empty directory or contains CIPHERDIR
+* 12 = password incorrect
+* 23 = gocryptfs.conf could not be opened (does not exist, is unreadable, ...)
+* other = please inspect the message
+
Change Password
---------------
@@ -71,3 +87,16 @@ Content of "change.txt":
3. New password
4. Optional newline
+#### Exit Codes
+
+* 0 = success
+* 12 = password incorrect
+* 23 = gocryptfs.conf could not be opened for reading
+* 24 = could not write the updated gocryptfs.conf
+* other = please inspect the message
+
+Further Reading
+---------------
+
+Additional exit codes that are unlikely to occour are defined in
+[exitcodes.go](internal/exitcodes/exitcodes.go).