Class Client

A client that can be used to log messages, errors, and prompt the user.

This is a WIP and will be built out more in the future. For now, it's just a simple wrapper around console and prompts.

Constructors

Methods

Constructors

Methods

  • Log a message to stdout.

    Parameters

    • ...message: unknown[]

      Any number of arguments to log.

    Returns void

  • Prompt the user for input.

    Type Parameters

    • T extends PromptType = PromptType

    Parameters

    Returns Promise<
        {
            autocomplete: string;
            autocompleteMultiselect: string[];
            confirm: boolean;
            date: Date;
            invisible: string;
            list: string[];
            multiselect: string[];
            number: number;
            password: string;
            select: string;
            text: string;
            toggle: boolean;
        }[T],
    >

    The user's input.

  • Log a warning message to stdout.

    Parameters

    • ...warning: any

      Any number of arguments to log.

    Returns void