fmartingr
/
jeeves
Archived
1
0
Fork 0
This repository has been archived on 2021-02-14. You can view files and clone it, but cannot push or open issues or pull requests.
jeeves/docs/usage.rst

41 lines
945 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.actions.shell:ScriptAction",
"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