nof is a tiny CLI tool that runs shell commands defined in simple YAML templates.
❗ This is a work in progress, so the code might be messy, tests might be lacking and things might break frequently. If you want a better version that has many more features visit this repo. I just wanted something much more minimalistic that has a more readable and simpler yaml syntax.
The yaml file for the example below is present inside examples/find.yaml
To run the command:
find /var/log "*.log" -mtime -3
Use the following YAML file:
# find.yaml
find:
- "$NOF_EXAMPLE_DIR"
- "*.log"
- "-mtime"
- "-3"
Then run:
export NOF_EXAMPLE_DIR=/var/log && ./nof run ./examples/find.yaml
-
Clone the repo:
git clone https://github.com/hosmir/nof.git cd nof
-
Build the binary (requires Go):
go build -o ./bin/ -v ./...
OR
Just download the binary from the releases page and add it to your PATH. (The binary is built on for linux amd64)
GNU GPL-3.0