Liking cljdoc? Tell your friends :D

hara.function.task.process


invokeclj

(invoke task & args)

executes the task, given functions and parameters

(def world nil)

(invoke (task/task :namespace "ns-interns" ns-interns)) => {'world #'hara.function.task.process-test/world}

executes the task, given functions and parameters

(def world nil)

(invoke (task/task :namespace "ns-interns" ns-interns))
=> {'world #'hara.function.task.process-test/world}
raw docstring

main-functionclj

(main-function func count)

creates a main function to be used for execution

(main-function ns-aliases 1) => (contains [arg/vargs? false])

(main-function ns-unmap 1) => (contains [arg/vargs? true])

creates a main function to be used for execution

(main-function ns-aliases 1)
=> (contains [arg/vargs? false])

(main-function ns-unmap 1)
=> (contains [arg/vargs? true])
raw docstring

select-inputsclj

(select-inputs task lookup env input)

selects inputs based on matches

(select-inputs {:item {:list (fn [_ _] ['hara.test 'spirit.common])}} {} {} ['hara]) => ['hara.test]

selects inputs based on matches

(select-inputs {:item {:list (fn [_ _] ['hara.test 'spirit.common])}}
               {}
               {}
               ['hara])
=> ['hara.test]
raw docstring

select-matchclj

(select-match sel input)

returns true if selector matches with input

(select-match 'hara 'hara.test) => true

(select-match 'hara 'spirit.common) => false

returns true if selector matches with input

(select-match 'hara 'hara.test) => true

(select-match 'hara 'spirit.common) => false
raw docstring

task-inputsclj

(task-inputs task)
(task-inputs task input)
(task-inputs task input params)
(task-inputs task input params env)
(task-inputs task input params lookup env)

constructs inputs to the task given a set of parameters

(task-inputs (task/task :namespace "ns-interns" ns-interns) 'hara.function.task) => '[hara.function.task {} {} {}]

(task-inputs (task/task :namespace "ns-interns" ns-interns) {:bulk true}) => '[hara.function.task.process-test {:bulk true} {} {}]

constructs inputs to the task given a set of parameters

(task-inputs (task/task :namespace "ns-interns" ns-interns)
             'hara.function.task)
=> '[hara.function.task {} {} {}]

(task-inputs (task/task :namespace "ns-interns" ns-interns)
             {:bulk true})
=> '[hara.function.task.process-test {:bulk true} {} {}]
raw docstring

wrap-executeclj

(wrap-execute f task)

enables execution of task with transformations

enables execution of task with transformations
raw docstring

wrap-inputclj

(wrap-input f task)

enables execution of task with single or multiple inputs

enables execution of task with single or multiple inputs
raw docstring

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

× close