Skip to content
This repository was archived by the owner on Feb 7, 2026. It is now read-only.
This repository was archived by the owner on Feb 7, 2026. It is now read-only.

Argument API #61

@arnklint

Description

@arnklint

Enable an action to "request" arguments from the users.

const name = await arg("Your name");

// with options
const orgType = arg("Type of Organisation", { options: [{ label: "Large", value: "lg" }, { label: "small", value: "indie" }], strict: false, prefilled: "small" })

// disabling strict enables user to type anything

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions