1 | import * as commander from 'commander';
|
2 | import { CreateOps } from './interfaces';
|
3 | export interface CommandOption {
|
4 | flags: string;
|
5 | description: string;
|
6 | default?: string;
|
7 | }
|
8 | export interface CommandItem {
|
9 | command: commander.Command;
|
10 | actions: Function[];
|
11 | }
|
12 | export declare function getProjectName(namespace?: string): string;
|
13 | export declare abstract class AbstractCLI {
|
14 | private name;
|
15 | private version;
|
16 | private program;
|
17 | private commands;
|
18 | constructor(name: string, version: string);
|
19 | parse(): void;
|
20 | protected consoleLog(message: string, silent?: boolean): void;
|
21 | addCommand(name: string, description: string, options: CommandOption[], action: Function): void;
|
22 | private setDescriptionToCommand;
|
23 | addOptionToCommand(name: string | string[], options: CommandOption[]): void;
|
24 | addActionToCommand(name: string | string[], action: Function): void;
|
25 | addFirstActionToCommand(name: string | string[], action: Function): void;
|
26 | private spawnCommand;
|
27 | protected copyAndPrint(folder: string, subfolder: string | undefined, options: CreateOps): void;
|
28 | }
|