Skip to content

Support default command on mounted groups#97

Open
just-be-dev wants to merge 2 commits intowevm:mainfrom
just-be-dev:feat/group-default-command
Open

Support default command on mounted groups#97
just-be-dev wants to merge 2 commits intowevm:mainfrom
just-be-dev:feat/group-default-command

Conversation

@just-be-dev
Copy link
Copy Markdown

I'm creating a command generate that wraps around mise tasks. I may have a lint task and a lint:fix task. As I'm trying to generate it, there would obviously be a lint group but I want lint fix to work too. Right now, a CLI with run action will be mounted as a leaf and silently discard any subcommands.

I implemented this with the aid of Claude, but I've added tests here and I've got tests in my project to ensure it works how I expect. I'm not sure that I've covered all the places where updates would need to be made though.

…ypegen, config, MCP

Thread the `default` field through all remaining group consumers:
- Completions: set default as leaf for option/arg completions
- Skillgen/SyncSkills: emit default as leaf entry in skill files
- Typegen: include default args/options for typed CTAs
- configSchema: pass default options for config-file defaults
- MCP: add fixture and tests for group with default

14 new tests across all affected files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant