Completion suggestions for a specific REPL command

interface CommandCompletions {
    argumentPart?: string;
    completions: string[];
}

Properties

argumentPart?: string

The current argument fragment being completed, if any. This is relevant if an argument is composed of multiple parts (e.g. comma-separated lists).

completions: string[]

The possible completions for the current argument