X-Git-Url: https://code.consxy.com/gitweb/gitweb.cgi?p=clnl;a=blobdiff_plain;f=src%2Fmain%2Fextensions%2Fcli%2Fcli.lisp;h=9faddaaed1c76286dca40facfa93358ea38d7a32;hp=4a445467a019b822ee485da4885a696812290c13;hb=5a40730;hpb=04d53972b6d2865cfd82d888c35f75fffd840ec7 diff --git a/src/main/extensions/cli/cli.lisp b/src/main/extensions/cli/cli.lisp index 4a44546..9faddaa 100644 --- a/src/main/extensions/cli/cli.lisp +++ b/src/main/extensions/cli/cli.lisp @@ -1,19 +1,13 @@ (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 (:optional :number)) + :precedence 20 :func #'clnl-model:execute-button))) (defun shut-down () (sb-ext:exit :abort t))