Skip to content

Subcommands with CLI battery #815

@vocksel

Description

@vocksel

I'm interested in writing a more complex CLI for Flipbook's build script which would include subcommands for building specific chunks of the codebase.

A couple examples of what I'm looking for are:

lute scripts/build.luau plugin --channel prod
lute scripts/build.luau package --channel prod --member package-name

I could maybe hack something together with positional arguments but I would much rather have first-class support that could also integrate with the help output.

If the CLI battery could be updated to support this use case it would make my life easier :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    batteriesWork in the additional Luau batteries library portion of the codegood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions