smartcli/dist/smartcli.getters.d.ts

36 lines
1.0 KiB
TypeScript
Raw Normal View History

2016-05-12 01:27:45 +00:00
import * as interfaces from "./smartcli.interfaces";
2016-05-10 01:18:40 +00:00
/**
*
* @param commandString
* @returns {{specified: boolean, name: any, arguments: CliCommandArgument}}
*/
2016-05-12 01:27:45 +00:00
export declare let command: () => interfaces.CliCommand;
2016-05-10 01:18:40 +00:00
/**
* gets the second or higher value of plugins.argv._ if specified and returns it as commandArgument
* @param argumentLevel
* @returns {{specified: (boolean|boolean), name}}
*/
2016-05-12 01:27:45 +00:00
export declare let commandArgument: (argumentLevel: any) => interfaces.CliCommandArgument;
2016-05-10 01:18:40 +00:00
/**
* returns array with commandArgs
* @returns {CliCommandArgument[]}
*/
2016-05-12 01:27:45 +00:00
export declare let commandArgs: () => interfaces.CliCommandArgument[];
2016-05-10 01:18:40 +00:00
/**
* returns complete command array
* @returns {any}
*/
export declare let commandArray: () => string[];
/**
* returns a cli option
* @param optionName
* @returns {CliOption}
*/
2016-05-12 01:27:45 +00:00
export declare let option: (optionName: string) => interfaces.CliOption;
2016-05-10 01:18:40 +00:00
export declare let options: () => {};
/**
* returns Directory of cwd
* @returns {{path: string}}
*/
2016-05-12 01:27:45 +00:00
export declare let cwd: () => interfaces.Directory;