mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
guix home: Add 'edit' sub-command.
* guix/scripts/home/edit.scm: New file. * Makefile.am (MODULES): Add it. * guix/scripts/home.scm (show-help): Add "edit". (process-command): Handle it. (guix-home): Add it. * po/guix/POTFILES.in: Add 'guix/scripts/home/edit.scm'. * doc/guix.texi (Invoking guix home): Document it.
This commit is contained in:
parent
8eb17cebc1
commit
35c1edb20a
5 changed files with 87 additions and 1 deletions
|
@ -60,6 +60,7 @@
|
|||
#:autoload (guix scripts pull) (channel-commit-hyperlink)
|
||||
#:autoload (guix scripts system) (service-node-type
|
||||
shepherd-service-node-type)
|
||||
#:autoload (guix scripts home edit) (guix-home-edit)
|
||||
#:autoload (guix scripts home import) (import-manifest)
|
||||
#:use-module ((guix status) #:select (with-status-verbosity))
|
||||
#:use-module ((guix build utils) #:select (mkdir-p))
|
||||
|
@ -93,6 +94,8 @@ Some ACTIONS support additional ARGS.\n"))
|
|||
(newline)
|
||||
(display (G_ "\
|
||||
search search for existing service types\n"))
|
||||
(display (G_ "\
|
||||
edit edit the definition of an existing service type\n"))
|
||||
(display (G_ "
|
||||
container run the home environment configuration in a container\n"))
|
||||
(display (G_ "\
|
||||
|
@ -539,6 +542,8 @@ argument list and OPTS is the option alist."
|
|||
;; an home environment file.
|
||||
((search)
|
||||
(apply search args))
|
||||
((edit)
|
||||
(apply guix-home-edit args))
|
||||
((import)
|
||||
(let* ((profiles (delete-duplicates
|
||||
(match (filter-map (match-lambda
|
||||
|
@ -611,7 +616,7 @@ deploy the home environment described by these files.\n")
|
|||
extension-graph shepherd-graph
|
||||
list-generations describe
|
||||
delete-generations roll-back
|
||||
switch-generation search
|
||||
switch-generation search edit
|
||||
import container)
|
||||
(alist-cons 'action action result))
|
||||
(else (leave (G_ "~a: unknown action~%") action))))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue