@kui-shell/core
Version:
An Electron-based shell for cloud-native development
17 lines (16 loc) • 526 B
TypeScript
/**
* The command context model, defaulting to the _defaultContext, which
* can be overridden via `setDefaultCommandContext`.
*
*/
export declare const Context: {
current: string[];
};
/**
* When commands are executed, the command resolver will use a
* fallback prefix. This routine tries to discover, from the
* environment, what the default fallback prefix should be.
*
*/
export declare const setDefaultCommandContext: (commandContext: string[]) => void;
export declare function getCurrentContext(): string[];