Simple tool that auto detect and executes a build system target.
- Make
- Taskfile (searches for Taskfile.yml)
- Earthly
- Mix (only build, test)
- Cargo
- go
- Docker compose (only build)
- Docker (only build)
Download and extract under a $PATH
registered directory.
Usage: buildany [OPTIONS] <COMMAND>
Commands:
build Build command
run Run command
test Test command
help Print this message or the help of the given subcommand(s)
Options:
-c, --completion <COMPLETION> Shell completion [possible values: bash, elvish, fish, powershell, zsh]
-t, --target <TARGET> Project build tool [possible values: make, task, earthly, mix, cargo, go, docker-compose, docker]
-d, --dir <DIR> Project directory to execute the command
-h, --help Print help
-V, --version Print version
We can use this command to create common keybindings for multiple build systems.
We can add a sendInput action.1 Press ctrl+shift+p
search for open settings json and add the following:
{ "command": {"action": "sendInput", "input": "buildany build\r"}, "keys": "ctrl+shift+b" }
Declare a new bind2 in config.fish, open $HOME/.config/fish/config
and
add the following line to bind ctrl+b
for build bind \cb 'buildany build'
.