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/README.md

57 lines
1.2 KiB
Markdown
Raw Normal View History

2019-09-30 16:45:13 +00:00
# Jeeves
2019-09-23 18:10:42 +00:00
Jeeves will take care of your boring tasks so you don't have to worry.
![Python 3.7+](https://img.shields.io/badge/python-3.7%2B-blue)
2019-09-30 16:45:13 +00:00
- [Jeeves](#jeeves)
2019-10-03 16:13:34 +00:00
- [Documentation](#documentation)
2019-10-03 12:17:46 +00:00
- [Running it](#running-it)
- [Using the cli](#using-the-cli)
2019-09-30 16:45:13 +00:00
- [Contributing](#contributing)
2019-10-03 16:13:34 +00:00
## Documentation
2019-09-23 18:10:42 +00:00
2019-10-03 16:13:34 +00:00
Documentation is accesible and readable in the [docs](./docs) folder.
2019-09-23 21:11:26 +00:00
2019-10-03 12:17:46 +00:00
## Running it
### Using the cli
Jeeves provide a useful CLI to execute your flows in a very convenient way, for example. given a test flow:
``` javascript
// definition.json
{
"name": "Test flow",
"tasks": [
{
"name": "Say hello",
"type": "jeeves.core.tasks.shell:ShellTask",
"parameters": {
"script": "#!/bin/bash\necho HELLO WORLD!"
}
}
]
}
```
2019-09-30 16:45:13 +00:00
2019-10-03 12:17:46 +00:00
You can run it using `jeeves execute definition.json`:
2019-09-30 16:45:13 +00:00
2019-10-03 12:17:46 +00:00
```
$ 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
```
2019-09-30 16:45:13 +00:00
2019-10-03 12:17:46 +00:00
> You can also run the same command from stdin using:
> - `cat definition.json | jeeves execute --output -`
> - `jeeves execute --output - < definition.json`
2019-09-23 21:11:26 +00:00
2019-10-03 12:17:46 +00:00
## Contributing
2019-09-23 21:11:26 +00:00
2019-10-03 12:17:46 +00:00
TODO