diff options
author | John Soo <jsoo1@asu.edu> | 2020-11-04 07:51:52 -0800 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2020-11-29 23:55:57 +0100 |
commit | 58be9e0bf1e58131e4e8d2b74f41b7b8e154b4b8 (patch) | |
tree | 3429aa3a0ca874662b64567e18a6a7c831963098 /guix.scm | |
parent | e1c81203ca9aa8a6dedb7c539d3ff845626aadcc (diff) | |
download | guix-58be9e0bf1e58131e4e8d2b74f41b7b8e154b4b8.tar.gz guix-58be9e0bf1e58131e4e8d2b74f41b7b8e154b4b8.zip |
processes: Add '--format' and the "normalized" format.
* guix/scripts/processes.scm (lock->recutils): New procedure.
(daemon-session->recutils): Use it.
(daemon-sessions->recutils, session-key->recutils)
(session-scalars->normalized-record)
(child-process->normalized-record)
(daemon-sessions->normalized-record): New procedures.
(session-rec-type, lock-rec-type, child-process-rec-type)
(%available-formats): New variables.
(list-formats): New procedure.
(%options, show-help): Add '--format'.
(%default-options): New variable.
(guix-processes): Use 'parse-command-line' instead of 'args-fold*'.
Honor the 'format' value in OPTIONS.
* doc/guix.texi (Invoking guix processes): Document '--format'.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'guix.scm')
0 files changed, 0 insertions, 0 deletions