style: Add '--whole-file' option.
authorLudovic Courtès <ludo@gnu.org>
Tue, 2 Aug 2022 16:01:35 +0000 (18:01 +0200)
committerLudovic Courtès <ludo@gnu.org>
Mon, 8 Aug 2022 09:53:33 +0000 (11:53 +0200)
commita15542d26df42dabdb5e2f76d150ae200230c3b0
treeb5c17cf1660c5fc800a3f3773025ad0201848790
parent90ef692e9b48732ae2e3921ff5d101e186506a85
style: Add '--whole-file' option.

* guix/scripts/style.scm (format-whole-file): New procedure.
(%options, show-help): Add '--whole-file'.
(guix-style): Honor it.
* tests/guix-style.sh: New file.
* Makefile.am (SH_TESTS): Add it.
* doc/guix.texi (Invoking guix style): Document it.
Makefile.am
doc/guix.texi
guix/scripts/style.scm
tests/guix-style.sh [new file with mode: 0644]