GithubHelp home page GithubHelp logo

buildany's Introduction

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

buildany's People

Contributors

nikosl avatar

Stargazers

Babis Babalis avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.