Liking cljdoc? Tell your friends :D

clj-rpc.command


Commandclj

source

filter-commandsclj

(filter-commands ns pred)

get all the functions as commands in the namespace ns if statify (prd var-fn) is true return a map that key is function-name and value is a command

get all the functions as commands in the namespace ns
 if statify (prd var-fn) is true 
return a map that key is function-name and value is a command
sourceraw docstring

get-commandsclj

(get-commands ns)
(get-commands ns & var-fns)

get the specify var functions as commands in the namespace ns if the var-fns is null then get all public functions as commands. return a map that key is function-name and value is a command

get the specify var functions as commands in the namespace ns
 if the var-fns is null then get all public functions as commands. 
return a map that key is function-name and value is a command
sourceraw docstring

mk-commandclj

(mk-command cmd-str var-f)

make a command that can be executed cmd-str : string of the command var-f : the actutal execute function of the command

make a command that can be executed
cmd-str : string of the command
var-f : the actutal execute function of the command
sourceraw docstring

var-fn?clj

(var-fn? x)

check whether a var is a function. if the var has not been bound, then will throw a exception. so catch it

check whether a var is a function.
if the var has not been bound, then will throw a exception. so catch it 
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close