gatelineAPI reference
interface InteractiveNewIO {
    log?: (line: string) => void;
    editFile(initialContent: string): Promise<string>;
    prompt(question: string): Promise<string>;
}

Properties

Methods

Properties

log?: (line: string) => void

Methods

  • Writes initialContent somewhere editable, opens it in $EDITOR/ $VISUAL (fallback vi), and resolves with the re-read, human-edited content — the whole seam a test stubs to avoid spawning a real editor.

    Parameters

    • initialContent: string

    Returns Promise<string>