41 lines
940 B
ReStructuredText
41 lines
940 B
ReStructuredText
|
Usage
|
||
|
=====
|
||
|
|
||
|
Command Line Interface
|
||
|
----------------------
|
||
|
|
||
|
Jeeves provide a useful CLI to execute your flows in a very convenient way,
|
||
|
for example. given a test flow:
|
||
|
|
||
|
.. code-block:: javascript
|
||
|
|
||
|
// definition.json
|
||
|
{
|
||
|
"name": "Test flow",
|
||
|
"tasks": [
|
||
|
{
|
||
|
"name": "Say hello",
|
||
|
"type": "jeeves.core.tasks.shell:ShellTask",
|
||
|
"parameters": {
|
||
|
"script": "#!/bin/bash\necho HELLO WORLD!"
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
|
||
|
|
||
|
You can run it using `jeeves execute definition.json`::
|
||
|
|
||
|
$ jeeves execute --output definition.json
|
||
|
(i) Running flow from definition.json
|
||
|
=== Running flow: Test flow
|
||
|
ok! Running step [1/1]: Say hello
|
||
|
=== Full output:
|
||
|
HELLO WORLD
|
||
|
|
||
|
|
||
|
You can also run the same command from stdin using::
|
||
|
|
||
|
cat definition.json | jeeves execute --output -
|
||
|
jeeves execute --output - < definition.json
|