@grandlinex/easy-cli
Version:
Cli lib to perform common tasks
13 lines (12 loc) • 441 B
TypeScript
import { CMap } from '@grandlinex/core';
import { IArgs, ParamTypeRaw } from '../lib/types.js';
export default class InteractionArgs implements IArgs {
cmd: string[];
param: CMap<string, ParamTypeRaw>;
constructor();
getCmdList(): string[];
getLength(): number;
getParameters(): CMap<string, ParamTypeRaw>;
getParameter<T = ParamTypeRaw | undefined>(key: string): T;
getParameterNull(key: string): boolean;
}