summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorArun Isaac <arunisaac@systemreboot.net>2023-03-08 15:36:55 +0000
committerRicardo Wurmus <rekado@elephly.net>2023-03-30 22:57:19 +0200
commita648cfbe3203d0f26c79396482eefa7c9366616c (patch)
tree8e4178d7e084dd951b69bdfeae3bef1749979b83 /scripts
parent80b6ef81d4a913a52fbed2eb0ec1db0871114fe3 (diff)
client: Add CLI client to search for issues.
* mumi/client.scm: New file. * scripts/mumi.in: Import (mumi client). (show-mumi-usage): Document search subcommand. (main): Add search subcommand. * Makefile.am (SOURCES): Add mumi/client.scm.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mumi.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/mumi.in b/scripts/mumi.in
index 755dfb3..9b61729 100644
--- a/scripts/mumi.in
+++ b/scripts/mumi.in
@@ -4,7 +4,7 @@
!#
;;; mumi -- Mediocre, uh, mail interface
;;; Copyright © 2016, 2017, 2019, 2020 Ricardo Wurmus <rekado@elephly.net>
-;;; Copyright © 2018, 2021 Arun Isaac <arunisaac@systemreboot.net>
+;;; Copyright © 2018, 2021, 2023 Arun Isaac <arunisaac@systemreboot.net>
;;;
;;; This file is part of mumi.
;;;
@@ -26,6 +26,7 @@
(system repl server)
(ice-9 match)
(ice-9 format)
+ ((mumi client) #:prefix client:)
(mumi config)
((mumi debbugs)
#:select (extract-bug-numbers))
@@ -116,6 +117,9 @@
(define (show-mumi-usage)
(format (current-error-port)
"
+ `mumi search QUERY':
+ search mumi for issues.
+
`mumi web [--address=address] [--port=port] [--listen-repl[=port]] [--disable-mailer]':
start the application web server.
@@ -132,6 +136,8 @@
(exit 1))
(match (cdr (program-arguments))
+ (("search" . query-strings)
+ (client:search (string-join query-strings)))
(("mailer" . rest)
(let* ((opts (parse-options rest))
(sender (assoc-ref opts 'sender))