Skip to content

also return value for $.select #292

@scarf005

Description

@scarf005

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" }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions