tyrus:cli
tyrus:cli contains native prompt helpers for interactive terminal programs. Prompt UI is terminal chrome and should stay on stderr so stdout remains clean for data output.
Imports
Imports
import { confirm, input, integer, isTTY, multiselect, number, password, select } from "tyrus:cli";Exported Items
| Item | Signature | Purpose |
|---|---|---|
input | (options: InputOptions) => string | Reads a text value. |
password | (options: PasswordOptions) => string | Reads a hidden secret value, optionally with confirmation. |
confirm | (options: ConfirmOptions) => boolean | Reads a yes/no answer. |
select | (options: SelectOptions) => string | Lets the user choose one option. |
multiselect | (options: MultiSelectOptions) => string[] | Lets the user choose multiple options. |
number | (options: NumberOptions) => f64 | Reads a floating-point number. |
integer | (options: IntegerOptions) => i64 | Reads an integer. |
isTTY | () => boolean | Reports whether stdout is an interactive terminal. |
