Skip to content

mouseless/cli-base

Repository files navigation

CLI Base

The most basic CLI and Command system for internal cli apps.

Create commands and let Cli manages main program flow;

const cli = Cli.new([
  Command.new("hello", async name => {
    console.log(`hello ${name}`);
  }, [ question.text("name") ])
]);

await cli.run();

You can make use of command line arguments as well;

npm start -- hello --name John

About

The most basic CLI and Command system for internal cli apps

Topics

Resources

License

Stars

Watchers

Forks