Small script to execute build commands (or any other commands) from anywhere in your project as if you were in the project root directory.
Create a .bldr
file in the root of the project. This is a JSON file containing
a map of actions to commands.
An action is passed to bldr
to have it execute the command.
In .bldr
{
"build": "cmake --build build",
"run": "./build/executable"
}
bldr build # will run `cmake --build build` in the project root
bldr run # will run `./build/executable` in the project root
Requires go
make
make install