UNPKG

511 BPlain TextView Raw
1import {Command} from "../interfaces/command";
2import {injectable} from 'inversify';
3
4@injectable()
5export class CommandImpl implements Command {
6 aliases: string[];
7 command: string;
8 commandDesc: string;
9 handler: (argv: any)=>void;
10 options: any;
11 subCommands: Command[];
12
13 constructor() {
14 this.aliases = [];
15 this.command = '';
16 this.commandDesc = '';
17 //noinspection JSUnusedLocalSymbols
18 this.handler = (argv: any)=> {
19 };
20 this.options = {};
21 this.subCommands = [];
22 }
23}