guix hash, guix download: Add '--hash'.
authorLudovic Courtès <ludo@gnu.org>
Mon, 18 May 2020 20:10:20 +0000 (22:10 +0200)
committerLudovic Courtès <ludo@gnu.org>
Thu, 21 May 2020 22:35:24 +0000 (00:35 +0200)
commit18ae1ec3ecfe22d55d6cdf595a442afebbc5595a
tree558329bc3c21c132bd1e9bd1dd471c26e60fad6c
parent9418aaa00db44d3e0e3318ff66faace0d7b43326
guix hash, guix download: Add '--hash'.

* guix/scripts/download.scm (%default-options): Add 'hash-algorithm'.
(show-help, %options): Add "--hash".
(guix-download): Honor it.
* guix/scripts/hash.scm (%default-options): Add 'hash-algorithm'.
(show-help, %options): Add "--hash".
(guix-hash): Honor it.
* tests/guix-hash.sh: Test '-H sha512'.
* doc/guix.texi (Invoking guix download): Document it.
(Invoking guix hash): Document it.
doc/guix.texi
guix/scripts/download.scm
guix/scripts/hash.scm
tests/guix-hash.sh