Coverage report: /home/ellis/comp/core/lib/organ/cli.lisp
Kind | Covered | All | % |
expression | 0 | 45 | 0.0 |
branch | 0 | 0 | nil |
Key
Not instrumented
Conditionalized out
Executed
Not executed
Both branches taken
One branch taken
Neither branch taken
1
;;; cli.lisp --- Organ CLI
6
(in-package :organ/cli)
8
;; (defopt organ-output (when *arg* (trace! (or *arg* "output.organ"))))
9
(defcmd organ-describe ()
12
(describe (org-parse :document (pathname (car *args*))))
13
(describe (org-parse :document #P"readme.org"))))
15
(defcmd organ-inspect ()
18
(inspect (org-parse :document (pathname (car *args*))))
19
(inspect (org-parse :document #P"readme.org"))))
23
(print (org-parse-lines t (uiop:read-file-string (car *args*))))
24
(log:error! "missing file arg")))
26
(defcmd organ-parse ()
27
(let ((input (if *args* (car *args*) #P"readme.org")))
28
(describe (org-parse :document input))))
30
(define-cli *organ-cli*
35
:description "org-mode toolbox"
37
:opts ((:name "level" :description "set the log level" :thunk organ-log-level)
38
(:name "version" :description "print version" :thunk organ-version)
39
;; (:name "output" :description "output file" :kind file :thunk organ-output)
42
:description "inspect an org file"
45
:description "display local org info"
48
:description "describe local org info"
49
:thunk organ-describe)