Represents a clipboard for the CLI

interface ICliClipboard {
    read: () => Promise<string>;
    write: (text: string) => Promise<void>;
}

Properties

Properties

read: () => Promise<string>

Read text from the clipboard

Type declaration

    • (): Promise<string>
    • Returns Promise<string>

      The text read from the clipboard

write: (text: string) => Promise<void>

Write text to the clipboard

Type declaration

    • (text: string): Promise<void>
    • Parameters

      • text: string

        The text to write to the clipboard

      Returns Promise<void>

      void