UNPKG

@kui-shell/core

Version:

An Electron-based shell for cloud-native development

10 lines (9 loc) 474 B
import { CommandHandlerWithEvents, KResponse, ParsedOptions } from '../models/command'; import { ExecOptions } from '../models/execOptions'; /** * Do the given arguments (both positional and optional) conform to * the minimal requirements of the usage model of the given * `evaluator`? * */ export default function enforceUsage<T extends KResponse, O extends ParsedOptions>(argv: string[], evaluator: CommandHandlerWithEvents<T, O>, execOptions: ExecOptions): boolean;