A high-level build target for Command Line Interfaces.

Use it to build (and publish) Command Line Interfaces.

Example:

const cli = new x9.build.Cli({});

Some Highlights:

Example

// logic goes here
function main() {
  console.log("Hello World!")
}
// build definition
const cli = new Cli({ main, command: "hello", alias: "hh" })

// export tasks so you can call then from the command line
export function publish(){
  // ...
}

Declaring your CLI interface using Types