diff options
author | Ludovic Courtès <ludo@gnu.org> | 2019-11-07 18:15:55 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2019-11-07 18:39:55 +0100 |
commit | 3e962e59d849e4300e447d94487684102d9d412e (patch) | |
tree | 3d69d4365af0c02f5afa121355872da2d97d9295 /doc/guix.texi | |
parent | 7de9471707116b51ef88d042887dd93e8260513d (diff) | |
download | patches-3e962e59d849e4300e447d94487684102d9d412e.tar patches-3e962e59d849e4300e447d94487684102d9d412e.tar.gz |
graph: Support package transformation options.
* guix/scripts/graph.scm (%options): Append %TRANSFORMATION-OPTIONS.
(show-help): Call 'show-transformation-options-help'.
(guix-graph): Call 'options->transformation' and use it.
* tests/guix-graph.sh: Add test.
* doc/guix.texi (Invoking guix graph): Document it.
Diffstat (limited to 'doc/guix.texi')
-rw-r--r-- | doc/guix.texi | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index 3a9d206b9f..3b8e5935bb 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -9907,7 +9907,18 @@ The package dependency graph is largely architecture-independent, but there are some architecture-dependent bits that this option allows you to visualize. @end table +On top of that, @command{guix graph} supports all the usual package +transformation options (@pxref{Package Transformation Options}). This +makes it easy to view the effect of a graph-rewriting transformation +such as @option{--with-input}. For example, the command below outputs +the graph of @code{git} once @code{openssl} has been replaced by +@code{libressl} everywhere in the graph: +@example +guix graph git --with-input=openssl=libressl +@end example + +So many possibilities, so much fun! @node Invoking guix publish @section Invoking @command{guix publish} |