smartcli/dist/smartcli.classes.smartcli.d.ts

37 lines
1.0 KiB
TypeScript
Raw Normal View History

2016-08-26 07:21:42 +00:00
/// <reference types="q" />
import "typings-global";
2016-08-26 07:21:42 +00:00
import * as plugins from "./smartcli.plugins";
export declare class Smartcli {
argv: any;
questionsDone: any;
parseStarted: any;
commands: any;
questions: any;
version: string;
constructor();
2016-08-26 07:21:42 +00:00
/**
* adds an alias, meaning one equals the other in terms of triggering associated commands
*/
addAlias(keyArg: any, aliasArg: any): void;
2016-08-26 07:21:42 +00:00
/**
* adds a Command by returning a Promise that reacts to the specific commandString given.
*
* Note: in e.g. "npm install something" the "install" is considered the command.
*/
addCommand(definitionArg: {
commandName: string;
2016-08-26 07:21:42 +00:00
}): plugins.q.Promise<{}>;
/**
* gets a Promise for a command word
*/
2016-06-22 09:55:23 +00:00
getCommandPromise(commandNameArg: any): void;
addQuestion(definitionArg: {
questionString: string;
questionType: string;
}): void;
2016-06-16 00:58:45 +00:00
addHelp(): void;
addVersion(versionArg: string): void;
2016-08-26 07:21:42 +00:00
standardTask(): plugins.q.Promise<{}>;
startParse(): void;
2016-06-09 12:03:18 +00:00
}