An opinionated CLI for Chronos
Linux | OSX |
---|---|
64bit | 64bit |
See all releases
go get github.com/yieldbot/chronos-shuttle
cd $GOPATH/src/github.com/yieldbot/chronos-shuttle
go build
./chronos-shuttle -h
Usage: chronos-shuttle [OPTIONS] COMMAND [arg...]
An opinionated CLI for Chronos
Options:
--chronos : Chronos url (default "http://localhost:8080")
--proxy : Proxy url
-h, --help : Display usage
-pp : Pretty print for JSON output
-v, --version : Display version information
-vv : Display extended version information
Commands:
add : Add a job
del : Delete a job
graph : Retrieve the dependency graph
jobs : Retrieve jobs
kill : Kill tasks of the job
run : Run a job
sync : Sync jobs via a file or directory
Default Chronos url is http://localhost:8080
. But also you can use --chronos
argument on each
command or set ENV variable with following command
export CHRONOS_URL=http://localhost
You can use --proxy
argument on each command or set ENV variable with following command
export SHUTTLE_PROXY_URL=http://localhost:8892
./chronos-shuttle jobs
Syncing a file
./chronos-shuttle sync examples/jobs/job-1.json
Syncing a directory
./chronos-shuttle sync examples/jobs/
./chronos-shuttle add '{"schedule": "R/2015-11-09T00:00:00Z/PT24H", "name": "test-1", "epsilon": "PT30M", "command": "echo test-1 && sleep 60", "owner": "localhost@localhsot", "async": false}'
./chronos-shuttle run test-1
./chronos-shuttle kill test-1
./chronos-shuttle graph test-1
./chronos-shuttle del test-1
- Auto binary release
- Add tests
Licensed under The MIT License (MIT)
For the full copyright and license information, please view the LICENSE.txt file.
[coverage-image]: https://coveralls.io/repos/yieldbot/chronos-shuttle/badge.svg?branch=master&service=github)