UNPKG

kui-shell

Version:

This is the monorepo for Kui, the hybrid command-line/GUI electron-based Kubernetes tool

24 lines (23 loc) 1.01 kB
import { CatchAllHandler, Command, CommandTree, CommandTreeResolution, Disambiguator } from '../models/command'; import { ExecOptions } from '../models/execOptions'; interface CommandModel { catchalls: CatchAllHandler[]; read(argv: string[], execOptions: ExecOptions): Promise<CommandTreeResolution>; forEachNode(fn: (command: Command) => void): void; } export declare class CommandModelImpl implements CommandModel { private readonly _root; readonly root: CommandTree; private readonly _disambiguator; readonly disambiguator: Disambiguator; private readonly _catchalls; readonly catchalls: CatchAllHandler[]; read(argv: string[], execOptions: ExecOptions): Promise<CommandTreeResolution>; forEachNode(fn: (command: Command) => void): void; private newTree; } export declare function getModelInternal(): CommandModelImpl; export declare function getModel(): CommandModel; export declare function init(): void; export declare function initIfNeeded(): void; export {};