Add man page

This commit is contained in:
2026-02-23 12:05:08 -08:00
parent 351e076f5f
commit 2af64d17be
3 changed files with 32 additions and 4 deletions

View File

@ -15,7 +15,8 @@
#:read-directorysizes-for-trash-directory
#:write-directorysizes-for-trash-directory)
(:use #:cl #:clash/parse-date #:clash/format)
(:export #:toplevel))
(:export #:toplevel
#:make-markdown-doc))
(in-package :clash)
@ -1041,3 +1042,13 @@ Args can be supplied to facilitate testing in SLIME."
(clingon:run (toplevel/command) args)
(clingon:run (toplevel/command)))
(flush-directorysizes-cache)))
;; Used from the build system
(defun make-markdown-doc ()
"Generate documentation in a markdown format."
;; the first argument is "--"
(let ((target (second (uiop:command-line-arguments))))
(with-open-file (out target :direction :output
:if-exists :overwrite
:if-does-not-exist :create)
(clingon:print-documentation :markdown (toplevel/command) out))))