aboutsummaryrefslogtreecommitdiff
path: root/lib/client.lisp
diff options
context:
space:
mode:
authorColin Okay <okay@toyful.space>2022-03-13 14:39:55 -0500
committerColin Okay <okay@toyful.space>2022-03-13 14:39:55 -0500
commit6a6c2ec8e2ef6cc9fa91f769d7dbe79387529619 (patch)
tree408b212bf6720fd97c1e264d641a5cbe830f76f5 /lib/client.lisp
parent8ba6552132fab6daef1f2b10adf932c87947e2ec (diff)
printing drafts
Diffstat (limited to 'lib/client.lisp')
-rw-r--r--lib/client.lisp7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/client.lisp b/lib/client.lisp
index 233cc42..530b454 100644
--- a/lib/client.lisp
+++ b/lib/client.lisp
@@ -21,7 +21,7 @@
;; WITH-LOCAL-STATE form. If you are hacking in the REPL, make sure
;; to wrap function calls appropriately.
-;;; GETTING ONELINERS & Displaying oneliners
+;;; GETTING ONELINERS & DISPLAYING ONELINERS
(defun search-for-oneliners (terms limit &optional not-flagged-p all-flagged-p newestp)
(assert (loop for term in terms never (find #\, term)) () "Search terms may not contain commas.")
@@ -78,6 +78,11 @@ running the body. If such a oneliner can be found."
(princ #\newline)
(princ (oneliner-explanation ol)))))
+(defun print-drafts ()
+ (format t "DRAFTS~%")
+ (dolist (draft *drafts*)
+ (print-oneliner-result-for-user (cdr draft))))
+
;;; RUNNING ONELINERS
(defvar *ol-output-timeout* 1)