https://github.com/jackmordaunt/run
Run things in sequence with shell-lite syntax with this minimal task runner.
https://github.com/jackmordaunt/run
bash cli make minimal runner rust sh shell task
Last synced: 2 months ago
JSON representation
Run things in sequence with shell-lite syntax with this minimal task runner.
- Host: GitHub
- URL: https://github.com/jackmordaunt/run
- Owner: JackMordaunt
- Created: 2020-04-21T11:11:27.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-30T07:53:46.000Z (almost 6 years ago)
- Last Synced: 2025-02-25T09:23:35.663Z (over 1 year ago)
- Topics: bash, cli, make, minimal, runner, rust, sh, shell, task
- Language: Rust
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# run
> Minimal task runner.
run is an _extremely_ minimal task runner that supports a shell-lite syntax.
## Install
```
git clone https://github.com/jackmordaunt/run
cd run
cargo install --path .
```
## Use
An example run file:
```
// Build binary paramaterized by some C library.
$cc -o tmp.exe foo.c $lib
// Run it with some arguments in a shell pipeline.
tmp.exe --flag-one $flag-one | tail $1
// Cleanup afterward.
rm *.exe
```
Run it like this:
`run build.run -cc gcc -lib foobar.h -flag-one foo 10`
### Syntax
Very simple. '$' denotes a variable. Words declare __named__ variables, numbers
declare __positional__ variables.
Comments are C-like, denoted by '//'.
For example:
```
// Positional variables.
echo $1 $2 $3
// Named variables.
echo $foo $bar $baz
```
## Remarks
- For personal use (experimental, use at your own risk).
- Highly portable because it's minimal.
- Sick of looking at powershell, bash, make, and co.
- Does the 80% solution of running paramatarised commands in sequence.
- Features added via personal workflow.
- Not trying to support the universe.
- No turing complete language included.