@grandlinex/easy-cli
Version:
Cli lib to perform common tasks
21 lines (20 loc) • 735 B
TypeScript
import { CoreLogChannel } from '@grandlinex/core';
import { IArgs, ParamType } from '../lib/types.js';
import { ShellCommand } from '../class/ShellComand.js';
export default class ArgUtil {
static printDebug(log: CoreLogChannel, args: IArgs): void;
static buildCmd(cmd: ShellCommand, args: IArgs): void;
/**
* Check if a parameter is a specific type
* @param name
* @param type
* @param args The arguments
*/
static isParameterType(args: IArgs, name: string, type: ParamType): boolean;
/**
* Get the value of a parameter
* @param args The arguments
* @param name The name of the parameter
*/
static checkParameterType(args: IArgs, name: string): ParamType | null;
}