@rawcmd/core
Version:
Rawcmd core package.
31 lines (27 loc) • 865 B
Markdown
> [Rawcmd](https://github.com/rawcmd/framework) core package.
[](https://github.com/rawcmd/framework) allows for building command-line user interfaces in NodeJS. It's a lightweight and open-source framework, written with [TypeScript](https://www.typescriptlang.org). It's actively maintained, well tested and already used in production environments. The source code is available on [GitHub](https://github.com/rawcmd/framework) where you can also find our [issue tracker](https://github.com/rawcmd/framework/issues).
```ts
const command = new Command({
name: '',
alias: '',
description: '',
summary: '',
options: [
new Option({
name,
alias,
description,
parser,
validators,
}),
],
commands: [
new Command({}),
],
resolver(input) { ... },
});
command.perform(
process.argv[2],
);
```