firmament-yargs
Version:
Typescript classes for building CLI node applications
24 lines (21 loc) • 511 B
text/typescript
import {Command} from "../interfaces/command";
import {injectable} from 'inversify';
()
export class CommandImpl implements Command {
aliases: string[];
command: string;
commandDesc: string;
handler: (argv: any)=>void;
options: any;
subCommands: Command[];
constructor() {
this.aliases = [];
this.command = '';
this.commandDesc = '';
//noinspection JSUnusedLocalSymbols
this.handler = (argv: any)=> {
};
this.options = {};
this.subCommands = [];
}
}