(add-command command-name spec)
add command by name to the one command-map, used to find the spec on request
add command by name to the one command-map, used to find the spec on request
(register-command command-name spec)
(register-command command-name spec explicit-handler)
the command can have the same name of the function (implicit) - it must also have the same namespace as the call of this `register-command' function, or a third argument can be given that resolves to a function in another namespace, that way the command-name can be different from the function name if desired.
the command can have the same name of the function (implicit) - it must also have the same namespace as the call of this `register-command' function, or a third argument can be given that resolves to a function in another namespace, that way the command-name can be different from the function name if desired. * resolves a keyword to a function * adds a method to `command' * adds a spec to `Command'
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close