Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 412 Bytes

File metadata and controls

20 lines (14 loc) · 412 Bytes

@libreworks/cli

Examples

A Program With No Commands

import { Output, Program } from "@libreworks/cli";

const output = Output.create({});

const command = new Program(output, "@libreworks/cli:example-no-commands")
  .description("A test of @libreworks/cli")
  .version("0.0.0")
  .action(function () {
    output.write("You called the handler!");
  });

await command.parseAsync();