1 (in-package #:clnl-extension-cli)
8 PRIMS: Primitives defined for this extension
12 PRIMS returns the primitives used in the CLI extension."
14 (list :name :q :type :command :func #'shut-down)
15 (list :name :load :type :command :args '(t) :func #'load-file)
16 (list :name :help :type :command :args '((:token :optional)) :precedence 20 :func #'help)))
19 (sb-ext:exit :abort t))
21 (defun load-file (file)
24 (defun help (&optional token)
27 "Placeholder help facility, try <:help :q> or <:help :load> for information about the commands we accept"
29 (:|:Q| ":q quits out of clnl")
32 ":load <filename> loads up a model into the current clnl instance."
33 " Try :load \"Wolf Sheep Predation.nlogo\""))
34 (t (format nil "Don't have help for ~S" token))))))