UI/Model Parse - Sliders - WIP
[clnl] / src / main / extensions / cli / cli.lisp
index 3ca09835b1f42794ef540f5683cec90c48b39106..717d79cc1767135a90f13604e4f1d3504057ea9c 100644 (file)
@@ -1,22 +1,15 @@
 (in-package #:clnl-extension-cli)
 
-(defun prims ()
- "PRIMS => PRIMS
-
-ARGUMENTS AND VALUES:
-
-  PRIMS: Primitives defined for this extension
-
-DESCRIPTION:
-
-  PRIMS returns the primitives used in the CLI extension."
+(defmethod clnl-extensions:prims ((extension (eql :cli)))
  (list
   (list :name :q :type :command :func #'shut-down)
   (list :name :load :type :command :args '(t) :func #'load-file)
-  (list :name :help :type :command :args '((:token :optional)) :precedence 20 :func #'help)))
+  (list :name :help :type :command :args '((:token :optional)) :precedence 20 :func #'help)
+  (list
+   :name :button :type :command :args '(:string (:number :optional))
+   :precedence 20 :func #'clnl-model:execute-button)))
 
 (defun shut-down ()
- (cl-charms/low-level:endwin)
  (sb-ext:exit :abort t))
 
 (defun load-file (file)