7d6b6f703b16b0633743fd4abc07edd926f50947
this was made so tests can be ran on github
sonya
A lightweight just-like task runner written in Swift.
Define recipes in a sonyafile and run them with sonya <recipe>.
sonyafile syntax
CC = clang
FLAGS = -O2
build:
$(CC) $(FLAGS) main.c -o main
run: build
./main
clean:
rm -f main
- Variables are defined as
key = valueand referenced as$(key) - Recipes can declare dependencies after the colon - they run first
- Commands are indented with whitespace
Install
swift build -c release
cp .build/release/sonya /usr/local/bin/sonya
Usage
sonya build # run a specific recipe
sonya # runs "default" recipe
Roadmap
- Command-line argument passing to recipes (
$1,$2, ...)
Description
Languages
Swift
97.9%
C
2.1%