kui-shell
Version:
This is the monorepo for Kui, the hybrid command-line/GUI electron-based Kubernetes tool
16 lines (15 loc) • 671 B
TypeScript
import { PrescanModel } from './prescan';
import { CommandBase } from '../models/command';
import { KuiPlugin } from '../models/plugin';
export interface PluginResolver {
resolve: (route: string, options?: {
subtree?: boolean;
tryCatchalls: boolean;
}) => void;
disambiguate: (route: string) => CommandBase[];
disambiguatePartial: (partial: string) => string[];
resolveOne: (plugin: string) => Promise<KuiPlugin>;
isOverridden: (route: string) => boolean;
isAlpha: (route: string, plugin: string) => boolean;
}
export declare const makeResolver: (prescan: PrescanModel, registrar: Record<string, KuiPlugin>) => PluginResolver;