@flowscripter/dynamic-cli-framework
    Preparing search index...

    Interface CompletionService

    Interface for a service providing shell auto-completion support.

    interface CompletionService {
        formatCompletions(
            shellType: ShellType,
            completions: readonly CompletionItem[],
        ): string;
        generateCompletions(
            shellType: ShellType,
            line: string,
            cursorPosition: number,
        ): Promise<readonly CompletionItem[]>;
        getBootstrapScript(
            shellType: ShellType,
            cliName: string,
            executablePath: string,
        ): string;
        getDefaultConfigPath(shellType: ShellType): string;
        validateShellEnvironment(shellType: ShellType): Promise<boolean>;
    }

    Implemented by

    Index
    • Parameters

      Returns string

    • Parameters

      • shellType: ShellType
      • line: string
      • cursorPosition: number

      Returns Promise<readonly CompletionItem[]>

    • Parameters

      • shellType: ShellType
      • cliName: string
      • executablePath: string

      Returns string

    • Parameters

      Returns string

    • Parameters

      Returns Promise<boolean>