![]() | ![]() | ![]() | define-repl-command | ![]() |
| [Macro] |
Purpose
Define a top-level REPL (read-eval-print loop) command.
Package :common-lisp-user
(also imported into and exported from :module-manager
Module Defined in extended-repl.lisp
Arguments and values
command-name-spec | A command-name or a list
( command-name option*) | |
lambda-list | A lambda-list | |
declaration | A declare expression (not evaluated) | |
documentation | A documentation string (not evaluated) | |
form | A form |
Detailed syntax
| :add-to-native-help | :no-help |
:no-cl-user-function |
Terms
command-name | A keyword symbol naming the command |
Description
The arguments to the command are not evaluated before
the command is invoked; it is up to the command to perform argument evaluation
if needed (see the example, below).
If the :add-to-native-help
:commands
If the :no-help
option is specified, then the command is not
added to either the primary or secondary help displays.
An equivalent function in the :common-lisp-user
:common-lisp-user
:no-cl-user-function
Documentation is a documentation string to be associated
with the REPL command
See also
startup-module
Examples
Define a REPL command named :ds
to be a handy
shortcut to the Common Lisp describe
(define-repl-command (:ds :add-to-native-help) (obj) "Describe object" (describe (eval obj)))
Define a REPL command named :my-app
:my-app
:gbbopen-user
(define-repl-command :my-app (&rest options) "Compile and load my GBBopen application module" (startup-module :my-app options :gbbopen-user))
The GBBopen Project
![]() | ![]() | ![]() | define-repl-command | ![]() |