Crates.io | doit-cli |
lib.rs | doit-cli |
version | 0.1.7 |
source | src |
created_at | 2024-01-02 23:55:18.715901 |
updated_at | 2024-05-13 02:50:59.609629 |
description | A CLI tool for managing your simple scripts. |
homepage | |
repository | https://github.com/jacobaclarke/doit-cli |
max_upload_size | |
id | 1086815 |
size | 39,822 |
A simple task runners for the lazy.
cargo install --git https://github.com/jacobaclarke/doit-cli.git
cargo install doit-cli
# do.yaml
env:
NAME: world
tasks:
hello:
cmd: echo $GREETING $NAME
env:
GREETING: Hello
$ doit hello
Hello world
# do.yaml
tasks:
hello:
cmd:
- echo "hello"
- echo "world"
$ doit hello
hello
world
# do.yaml
env:
NAME: world
tasks:
hello:
cmd: Hello $NAME
$ doit hello
Hello world
# do.yaml
env:
NAME: jimmy
tasks:
hello:
cmd: Hello $NAME
$ NAME=world doit hello
Hello world
# do.yaml
env:
NAME: jimmy
tasks:
hello:
cmd: Hello $NAME
env:
NAME: world
$ doit hello
Hello world
├── parent
│ ├── child
├── do.yaml
# /parent/do.yaml
task:
pwd:
cmd: pwd
$ cd child
$ doit pwd
/parent
├── parent
│ ├── child
├── do.yaml
# /parent/do.yaml
task:
pwd:
cmd: pwd
local: true
$ cd child
$ doit pwd
/parent/child
do.yaml
files# /parent/do.yaml
task:
hello:
cmd: echo hello world
# /parent/child/do.yaml
task:
greet:
cmd: doit hello
$ cd child
$ doit greet
hello world