-
Notifications
You must be signed in to change notification settings - Fork 110
Drake on the REPL
Aaron Crow edited this page Dec 15, 2013
·
5 revisions
You can use Drake from your Clojure REPL, via drake.core/run-workflow
. This will run Drake in auto mode, meaning there won't be an interactive user confirmation before running steps. Usage:
(workflow & opts)
You must specify a non-empty :targetv.
Examples:
(run-workflow "demos/factual" :targetv ["+..."])
(run-workflow "demos/factual" :targetv ["+..."] :branch "MYBRANCH")
(run-workflow "some/workflow.d" :targetv ["+..." "-^D" "-=B"]
:branch "MYBRANCH" :preview true)
Example Lein REPL session:
drake(develop) aaroncrow$ lein repl
REPL started; server listening on localhost port 53854
drake.core=> (use 'drake.core)
nil
drake.core=> (run-workflow "demos/factual" :targetv ["+..."] :preview true)
Checking for demos/factual/workflow.d
The following steps will be run, in order:
1: factual.out.json <- factual.in.json [forced]
nil
Note that log messages may not show up on the REPL.