smartcli/dist/smartcli.checks.d.ts

16 lines
603 B
TypeScript

import "typings-global";
import "./smartcli.interfaces";
/**
* 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;