Asks the user for a string input.
The question to display to the user.
Optionalfallback: string
An optional default value.
The user's response as a string.
Asks the user for a numeric input.
The question to display to the user.
Optionalfallback: number
An optional default numeric value.
The user's response as a number.
Asks the user to choose from a list of options.
The message to display to the user.
A list of string options to choose from.
An array of fallback selected indices (default is first).
Whether to allow multiple selections (checkbox style).
The user's selection(s) as a string or array of strings.
Asks the user for a yes/no confirmation.
The confirmation message to show.
The default value if the user provides no response (defaults to false).
The user's response as a boolean.
Opens a pseudo-editor by asking the user to input a multi-line value in the terminal.
(Note: actual editor support is limited in prompts, so this simulates one via text input).
The message to display to the user.
Optionalfallback: string
An optional default value.
The user's response as a string.
Prompts the user with a single question and returns the response.
A prompt object without a name, which will be set to 'value'.
The user's input cast to the specified type.
Asks the user for a hidden (secret) input such as a password.
The message to display to the user.
The user's input as a string.
StaticcreateFactory method to create a new CommandInput instance.
The options to configure the CommandInput instance.
A new instance of CommandInput.
Class representing a CommandInput Facade. Provides a simplified and consistent API for prompting users in the terminal using the
promptslibrary. Supports a variety of question types, such as text, number, confirm, password, select, multiselect, and more.