Skip to content

taskrfile/taskr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Taskr

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.

Features

  • Define tasks in a TOML file with commands and dependencies.
  • Load environment variables from a .env file.
  • List available tasks or show help for usage.

Disclaimer

  • Inline comments in taskr.toml and .env files are not yet supported.

Getting Started

Prerequisites

  • C++20 compatible compiler
  • CMake 3.15 or higher
  • Make (or any build system supported by CMake)

Building the Project

  1. Clone the repository:
git clone <repository-url>
  1. Create a build directory and run CMake:
cd cli-cpp mkdir build cd build cmake ..
  1. Build the project:
make
  1. The compiled binary will be located in the bin directory.

Usage

  1. 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"
  1. Run a task:
./bin/taskr run <task-name>
  1. List available tasks:
./bin/taskr -l
  1. Show help:
./bin/taskr -h

About

Command-Line Power, Simplified

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published