diff mbox series

[bug#50915] scripts: home: Support dry-run.

Message ID 1e1806b74a3ec354658cb91884eb64c5cc88faf3.1633009918.git.efraim@flashner.co.il
State Accepted
Headers show
Series [bug#50915] scripts: home: Support dry-run. | expand

Checks

Context Check Description
cbaines/applying patch fail View Laminar job
cbaines/issue success View issue
cbaines/applying patch fail View Laminar job
cbaines/issue success View issue
cbaines/applying patch fail View Laminar job
cbaines/issue success View issue
cbaines/applying patch fail View Laminar job
cbaines/issue success View issue
cbaines/applying patch fail View Laminar job
cbaines/issue success View issue

Commit Message

Efraim Flashner Sept. 30, 2021, 1:53 p.m. UTC
* guix/scripts/home.scm (%options): Add option for dry-run.
---
 guix/scripts/home.scm | 3 +++
 1 file changed, 3 insertions(+)


base-commit: 7b59508ca711d1fe299de3f8d9710da36aeb6829

Comments

Xinglu Chen Oct. 1, 2021, 5:17 p.m. UTC | #1
On Thu, Sep 30 2021, Efraim Flashner wrote:

> * guix/scripts/home.scm (%options): Add option for dry-run.
> ---
>  guix/scripts/home.scm | 3 +++
>  1 file changed, 3 insertions(+)

LGTM!
Efraim Flashner Oct. 4, 2021, 8:27 a.m. UTC | #2
Patch pushed.
diff mbox series

Patch

diff --git a/guix/scripts/home.scm b/guix/scripts/home.scm
index 75df6d707d..87529b0c3c 100644
--- a/guix/scripts/home.scm
+++ b/guix/scripts/home.scm
@@ -107,6 +107,9 @@  (define %options
                  (lambda args
                    (show-help)
                    (exit 0)))
+         (option '(#\n "dry-run") #f #f
+                 (lambda (opt name arg result)
+                   (alist-cons 'dry-run? #t result)))
          (option '(#\V "version") #f #f
                  (lambda args
                    (show-version-and-exit "guix show")))