Skip to content

select ​

select permite escolher uma string de uma lista.

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

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