dax icon indicating copy to clipboard operation
dax copied to clipboard

also return value for `$.select`

Open scarf005 opened this issue 1 year ago • 0 comments

it feels more natural to return value for selection:

const selectedBranch: string = await $.select({
    message: "Select a branch:",
    options: branches,
})

or we could return an option:

> await $.select({
...     message: "Select a branch:",
...     options: branches,
... })
{ index: 10, value: "main" }

scarf005 avatar Nov 21 '24 08:11 scarf005