thecodeah / quicli

Create CLI's quickly without any external files!

Home Page:https://quicli.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Menus

thecodeah opened this issue · comments

Something like this:
index.js

cli.log("Choose one of the following options:");
const foo = await cli.promptMenu("option1", "option2", "option3");
console.log(foo); // Output: option2

terminal

Choose one of the following options:
 > option1
 > option2
 > option3

Added in adc7c85

This is still achievable with relative ease by using cli.question, so to keep QuiCLI lightweight, this was removed.