Skip to content

Add a way to print available scripts under .lute #1101

@vocksel

Description

@vocksel

Right now I find myself forgetting available commands and having to manually look through my .lute folder (along with directory and sometimes test file clutter) is tedious. I would love something built into the CLI to handle this for me.

As an example of what I'm looking for, here's the contents of Flipbook's .lute directory:

.lute
├── analyze.luau
├── build.luau
├── bump-version.luau
├── clean.luau
├── install.luau
├── lib
├── lint.luau
├── serve-docs.luau
├── tasks
└── test.luau

Then when running any of the following:

lute run --list # available scripts
lute run --help # help text _and_ available scripts
lute run # same as the last

I would expect to get some output like:

Available commands: 
- analyze
- build
- bump-version
- clear
- install
- lint
- serve-docs
- test
Run any of these with `lute run <scriptName>`

Anecdotally I also see my agents get confused and start running commands like lute run .lute/build.luau and, while this executes just fine, its clear the agent doesn't fully understand how lute run works and that it's nicer for a human to see lute run build fly by than a file path. Having output like the above would help steer them (and myself) in the right direction.

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