guix home: Implement the 'extension-graph' and 'shepherd-graph' actions.
authorLudovic Courtès <ludo@gnu.org>
Fri, 11 Mar 2022 21:15:47 +0000 (22:15 +0100)
committerLudovic Courtès <ludo@gnu.org>
Fri, 18 Mar 2022 15:03:33 +0000 (16:03 +0100)
commit25261cbf96a3bf58abc6e836d71bdabe9154a83c
tree9ffb3c4af07b848470589071e5cf9f4d9056076e
parente607c377bb677ee4de0b0527adcef9d333767c0f
guix home: Implement the 'extension-graph' and 'shepherd-graph' actions.

Until now these two actions were silently ignored.

* guix/scripts/home.scm (show-help, %options): Add "--graph-backend".
(%default-options): Add 'graph-backend' key.
(export-extension-graph, export-shepherd-graph): New procedures.
(perform-action): Add #:graph-backend parameter.  Add cases for the
'extension-graph' and 'shepherd-graph' actions.
(process-action): Pass #:graph-backend to 'perform-action'.
* guix/scripts/system.scm (service-node-type)
(shepherd-service-node-type): Export
* tests/guix-home.sh: Add tests.
* doc/guix.texi (Invoking guix home): Document it.
doc/guix.texi
guix/scripts/home.scm
guix/scripts/system.scm
tests/guix-home.sh