]> pd.if.org Git - zpackage/blobdiff - doc/zpm-hash.8
add quote and hash man pages
[zpackage] / doc / zpm-hash.8
diff --git a/doc/zpm-hash.8 b/doc/zpm-hash.8
new file mode 100644 (file)
index 0000000..a77f957
--- /dev/null
@@ -0,0 +1,31 @@
+.TH zpm-hash 8 2018-12-08 "ZPM 0.3"
+.SH NAME
+zpm-hash \- list files in a zpm package
+.SH SYNOPSIS
+.B zpm hash
+[
+.I file
+]
+.SH DESCRIPTION
+\fBzpm-hash\fR hashes a file, or standard input if no file is given, and prints
+the hex encoded hash of the input to stdout, followed by a newline.
+The hash is the same hash used by zpm internally to track file content.
+The hash used is SHA-256.
+.SH OPTIONS
+None.
+.SH EXAMPLES
+.PP
+.nf
+cat /dev/null | zpm hash
+e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
+.fi
+.SH EXIT STATUS
+0 on success non zero on failure
+.SH FILES
+None
+.SH ENVIRONMENT
+None
+.SH AUTHOR
+Nathan Wagner
+.SH SEE ALSO
+zpm(8)