Skip to main content

Toolchain

A Toolchain is a CLI tool that has many functionalities and which is written in Cli DSL. We call it like that because often we aggregate different CLI tools under a single toolchain

Below we have a commented simple snippet of a toolchain writing "Hello" when called:

toolchain.cli
my-toolchain {                // <- Root toolchain
// The name of the root toolchain will
// define the name of the executable CLI

action <% echo Hello %> // <- The action to execute when the
// toolchain is invoked
}

After installing the script, CLiMAT will create a binary called "my-toolchain" that we can invoke from the console

Console
$ my-toolchain
Hello