Skip to content

Litr (Language Independent Task Runner) lets you configure and then run any tasks you want for any language.

License

Notifications You must be signed in to change notification settings

krieselreihe/litr

Repository files navigation

Litr

Litr (Language Independent Task Runner), lets you configure and then run any tasks you want for any language. Define scripts, run executables or execute commands on your machine. Litr serves as an abstraction layer to combine different strategies into one tool.

Attention: This software is currently in alpha ⚠️

Quick Setup

Install the tool via Homebrew. Currently, a simple installation is only supported under macOS (universal binary for intel and silicon). For other platforms you need to build from source. Support for other platforms will follow [#37, #38].

# On macOS
brew tap krieselreihe/litr
brew install litr

Define some commands, to make it feel real the example wraps this project with C++ and CMake:

[commands]
update = "git pull"
build = [
  "cmake -GNinja -DCMAKE_BUILD_TYPE=%{target} -B build/%{target}",
  "ninja -C build/%{target}"
]
test = "cd build/%{target}/src/tests && ctest"

[params.target]
shortcut = "t"
description = "Define the application build target."
type = ["debug", "release"]
default = "debug"

Run them all:

litr --target=debug update,build,test

To find out more go to the wiki setup section.

Development

Find more information about how to contribute in the contribution guide, also have a look at the code of conduct while you're at it.

License

Permissive MIT License.

About

Litr (Language Independent Task Runner) lets you configure and then run any tasks you want for any language.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks