summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorTomas Volf <~@wolfsden.cz>2024-10-06 15:23:07 +0200
committerLudovic Courtès <ludo@gnu.org>2024-10-07 12:51:23 +0200
commitdb1a1dc0b2eec26c36516f97102125878c2ff163 (patch)
tree6836f1ea5f184537667c11b36c3693cde637bf84 /doc
parent56632b081f363555a147595415f3381a54132152 (diff)
downloadguix-db1a1dc0b2eec26c36516f97102125878c2ff163.tar.gz
time-machine: Print profile path if no command is given.
Instead of warning, print the profile path of the cached-channel-instance.

* guix/scripts/time-machine.scm (guix-time-machine)[not command-line]: Print
the profile directory.
(show-help): Adjust usage message.
* doc/guix.texi (Invoking guix time-machine): Document it.

Change-Id: Id2c1ded514e6c5af45af9008ad1ef91beb509177
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 3ae39ebcd9..4aafcf9cc0 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -4762,6 +4762,11 @@ Note that @command{guix time-machine} can trigger builds of channels and
 their dependencies, and these are controlled by the standard build
 options (@pxref{Common Build Options}).
 
+If @command{guix time-machine} is executed without any command, it
+prints the file name of the profile that would be used to execute the
+command.  This is sometimes useful if you need to get store file name of
+the profile---e.g., when you want to @command{guix copy} it.
+
 @node Inferiors
 @section Inferiors