Ludovic Courtès
3794ce93be
scripts: Use 'define-command' and have 'guix help' use that.
This changes 'guix help' to print a short synopsis for each command and
to group commands by category.
* guix/scripts.scm (synopsis, category): New variables.
(define-command-categories, define-command): New macros.
(%command-categories): New variable.
* guix/ui.scm (<command>): New record type.
(source-file-command): New procedure.
(command-files): Return absolute file names.
(commands): Return a list of <command> records.
(show-guix-help)[display-commands, category-predicate]: New procedures.
Display commands grouped in three categories.
* guix/scripts/archive.scm (guix-archive): Use 'define-command'.
* guix/scripts/authenticate.scm (guix-authenticate): Likewise.
* guix/scripts/build.scm (guix-build): Likewise.
* guix/scripts/challenge.scm (guix-challenge): Likewise.
* guix/scripts/container.scm (guix-container): Likewise.
* guix/scripts/copy.scm (guix-copy): Likewise.
* guix/scripts/deploy.scm (guix-deploy): Likewise.
* guix/scripts/describe.scm (guix-describe): Likewise.
* guix/scripts/download.scm (guix-download): Likewise.
* guix/scripts/edit.scm (guix-edit): Likewise.
* guix/scripts/environment.scm (guix-environment): Likewise.
* guix/scripts/gc.scm (guix-gc): Likewise.
* guix/scripts/git.scm (guix-git): Likewise.
* guix/scripts/graph.scm (guix-graph): Likewise.
* guix/scripts/hash.scm (guix-hash): Likewise.
* guix/scripts/import.scm (guix-import): Likewise.
* guix/scripts/install.scm (guix-install): Likewise.
* guix/scripts/lint.scm (guix-lint): Likewise.
* guix/scripts/offload.scm (guix-offload): Likewise.
* guix/scripts/pack.scm (guix-pack): Likewise.
* guix/scripts/package.scm (guix-package): Likewise.
* guix/scripts/perform-download.scm (guix-perform-download): Likewise.
* guix/scripts/processes.scm (guix-processes): Likewise.
* guix/scripts/publish.scm (guix-publish): Likewise.
* guix/scripts/pull.scm (guix-pull): Likewise.
* guix/scripts/refresh.scm (guix-refresh): Likewise.
* guix/scripts/remove.scm (guix-remove): Likewise.
* guix/scripts/repl.scm (guix-repl): Likewise.
* guix/scripts/search.scm (guix-search): Likewise.
* guix/scripts/show.scm (guix-show): Likewise.
* guix/scripts/size.scm (guix-size): Likewise.
* guix/scripts/substitute.scm (guix-substitute): Likewise.
* guix/scripts/system.scm (guix-system): Likewise.
* guix/scripts/time-machine.scm (guix-time-machine): Likewise.
* guix/scripts/upgrade.scm (guix-upgrade): Likewise.
* guix/scripts/weather.scm (guix-weather): Likewise.
2020-09-10 12:27:24 +02:00
..
2020-09-03 00:09:38 +02:00
2020-08-13 16:44:52 +02:00
2020-09-08 00:47:35 +02:00
2020-09-10 12:27:24 +02:00
2020-07-28 14:10:28 +02:00
2020-06-16 16:10:46 +02:00
2020-09-08 00:47:35 +02:00
2019-12-15 00:34:05 +01:00
2020-03-22 16:49:47 +01:00
2020-07-25 19:11:37 +02:00
2020-09-08 00:47:35 +02:00
2020-02-24 11:01:52 +01:00
2020-07-05 03:15:08 +05:30
2020-08-24 13:35:24 +02:00
2020-09-08 00:47:35 +02:00
2020-08-24 10:41:06 +02:00
2020-01-12 00:19:09 +01:00
2020-08-28 23:29:07 +02:00
2019-12-29 18:24:54 +01:00
2020-07-25 19:11:36 +02:00
2020-07-05 16:07:59 +05:30
2020-07-20 23:25:10 +02:00
2020-09-01 00:48:11 -04:00
2020-07-25 19:11:37 +02:00
2020-09-08 00:47:35 +02:00
2020-09-06 15:40:54 +02:00
2020-08-24 13:35:24 +02:00
2020-04-17 23:36:47 +02:00
2020-06-06 23:28:48 +02:00
2020-05-11 23:30:55 +02:00
2020-08-24 10:41:06 +02:00
2020-01-03 16:06:26 +01:00
2020-07-25 19:11:36 +02:00
2020-05-15 12:27:22 +02:00
2020-08-23 23:05:16 +02:00
2020-08-24 13:35:24 +02:00
2020-06-18 14:48:17 +02:00
2020-06-23 23:39:42 +02:00
2020-08-31 15:50:35 +02:00
2020-08-25 11:53:20 +02:00
2020-03-22 16:49:47 +01:00
2020-07-24 18:56:25 +02:00
2020-04-08 00:05:45 +02:00
2020-07-25 19:11:37 +02:00
2020-03-19 15:14:08 +01:00
2020-09-10 12:27:24 +02:00
2020-09-08 00:47:35 +02:00
2020-01-24 23:56:43 +01:00
2020-09-02 23:59:24 +02:00
2020-04-19 13:27:06 +02:00
2020-09-02 17:17:37 +02:00
2019-11-13 22:49:47 +01:00
2020-09-08 00:47:35 +02:00
2020-05-22 01:29:39 +02:00
2020-09-10 12:27:24 +02:00
2020-07-27 13:35:49 +02:00
2020-08-24 13:35:24 +02:00