nikosl / buildany

Simple tool that auto detect and executes a build system target.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

buildany

Simple tool that auto detect and executes a build system target.

Supported

  1. Make
  2. Taskfile (searches for Taskfile.yml)
  3. Earthly
  4. Mix (only build, test)
  5. Cargo
  6. go
  7. Docker compose (only build)
  8. Docker (only build)

Install

Download and extract under a $PATH registered directory.

Usage

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

Examples

We can use this command to create common keybindings for multiple build systems.

Build keybind for "Windows Terminal"

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" }

Build keybind for "fish shell"

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' .

License

BSD 2-Clause

Footnotes

  1. Windows Terminal - tips and tricks

  2. fish - handle bind

About

Simple tool that auto detect and executes a build system target.

License:BSD 2-Clause "Simplified" License


Languages

Language:Rust 100.0%