Skip to content

The most basic CLI and Command system for internal cli apps

License

Notifications You must be signed in to change notification settings

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