smartcli/dist/smartcli.checks.d.ts
2016-05-12 03:27:45 +02:00

26 lines
912 B
TypeScript

import "./smartcli.interfaces";
/**
* checks for a special command string and returns true if found.
* @param commandString
* @returns {boolean}
*/
export declare let command: (commandString: string) => boolean;
/**
* checks if a command is present, returns true if yes, false if no.
* @returns {boolean}
*/
export declare let commandPresence: () => boolean;
/**
* checks for an special command argument at a certain position, returns true if matches, returns false if not
* @param level
* @returns {boolean}
*/
export declare let commandArgument: (commandArgumentString: string, level?: number) => boolean;
export declare let commandArgumentPresence: (level?: number) => boolean;
/**
* checks for a specific option string, returns true if yes, returns false if no
* @returns {boolean}
*/
export declare let option: (optionString: any) => boolean;
export declare let optionPresence: () => boolean;