@gud/cli
    Preparing search index...

    Class Client

    A client that wraps the Node.js console and provides additional methods for logging, error handling, and user prompts.

    Hierarchy

    • Console
      • Client
    Index

    Constructors

    Methods

    Constructors

    • Parameters

      • __namedParameters: { stderr?: WriteStream & {}; stdout?: WriteStream & {} } = {}

      Returns Client

    Methods

    • Prompt the user for confirmation.

      Parameters

      • message: string

        The confirmation message.

      • initial: boolean = true

      Returns Promise<boolean>

      Whether the user confirmed.

      initial - The initial value for the confirmation prompt. Defaults to true.