jdx / mise

dev tools, env vars, task runner
https://mise.jdx.dev
MIT License
8.11k stars 214 forks source link

Default task for a task group #2212

Open kapitoshka438 opened 1 month ago

kapitoshka438 commented 1 month ago

I have a group of tasks defined in .mise:

.mise
└── tasks
    └── gen
        ├── gen
        ├── gen1
        └── gen2

We usually run the most common task mise run gen:gen and sometimes need to run the others - mise run gen:gen1. It would be great if a task group was able to work with a default task. It could be a task file named default:

.mise
└── tasks
    └── gen
        ├── default
        ├── gen1
        └── gen2

Which would allow to run the default task just by mise run gen.

jdx commented 1 month ago

yeah I suppose you can't name it gen because that's the name of the directory. As a stopgap, you could add it to mise.toml but I see why organizing by files that isn't ideal.