Taskr is a simple command-line task runner written in C++. It allows you to define tasks in a taskr.toml file and execute them with ease. It also supports loading environment variables from a .env file.
Inspired by just.
- Define tasks in a TOML file with commands and dependencies.
- Load environment variables from a
.envfile. - List available tasks or show help for usage.
- Inline comments in
taskr.tomland.envfiles are not yet supported.
- C++20 compatible compiler
- CMake 3.15 or higher
- Make (or any build system supported by CMake)
- Clone the repository:
git clone <repository-url>- Create a build directory and run CMake:
cd cli-cpp mkdir build cd build cmake ..- Build the project:
make- The compiled binary will be located in the
bindirectory.
- Define tasks in
taskr.toml:
[echo] command = "echo \"Hello World!!\"" [build] command = "make -C build" description = "build the project" [install] command = "sudo ln -f bin/taskr /usr/bin/taskr" dependencies = ["echo", "build"] description = "link the taskr binary to /usr/bin/taskr"- Run a task:
./bin/taskr run <task-name>- List available tasks:
./bin/taskr -l- Show help:
./bin/taskr -h