Skip to content

select ​

select lets the user choose one string from a list.

Signatureselect(options: SelectOptions): string
tyrus
import { select } from "tyrus:cli";

const target: string = select({
    message: "Target?",
    choices: ["script", "cli", "api"],
});