Early alpha stage. Until now it is playground of ideas and everything can change.
x
is a Bash task runner written in Go. It has the goal to make your
utility scripts as easy as possible to execute. It is heavily inspired by
Makefile
and b5
X is build in Go and has therefor a single dependency free binary. You can find the right one for your platform attached to the releases.
x is available via Homebrew by adding a custom tap:
brew tap bambamboole/x
brew install x
- Taskfile
- config
- It recursively iterates up, so you can use it in a sub folder
- It is fast
A Taskfile
is a file which contains task definition in bash syntax.
Here a simple example:
#!/bin/bash
task:hello (){
echo "Hello $@!"
}
This is a very simple example, but it demonstrates a big feature.
It os possible to pass through arguments. A feature which is
missing in a Makefile
.
To execute this task now, you have to execute x hello
, or better with an
additional argument x hello world
.