@ably/cli
Version:
Ably CLI for Pub/Sub, Chat and Spaces
53 lines (52 loc) • 1.52 kB
TypeScript
import { Command, Config } from "@oclif/core";
import "../utils/sigint-exit.js";
export default class Interactive extends Command {
static description: string;
static hidden: boolean;
static EXIT_CODE_USER_EXIT: number;
private rl;
private historyManager;
private isWrapperMode;
private _flagsCache?;
private _manifestCache?;
private runningCommand;
private cleanupDone;
private historySearch;
constructor(argv: string[], config: Config);
run(): Promise<void>;
private setupReadline;
private handleCommand;
private parseCommand;
private cleanup;
private cleanupAndExit;
private completer;
private getCompletions;
private getTopLevelCommands;
private getSubcommandsForPath;
private getFlagsForCommandSync;
private displayCompletions;
private _commandCache?;
/**
* Check if we're running in web CLI mode
*/
private isWebCliMode;
/**
* Check if we're running in anonymous web CLI mode
*/
private isAnonymousWebMode;
/**
* Check if command matches a pattern (supports wildcards)
*/
private matchesCommandPattern;
/**
* Check if a command should be filtered out based on restrictions
*/
private isCommandRestricted;
private setupKeypressHandler;
private startHistorySearch;
private updateHistorySearch;
private cycleHistorySearch;
private updateHistorySearchDisplay;
private acceptHistoryMatch;
private exitHistorySearch;
}