Replies: 2 comments
|
This command could also check or automatically detect broken includes (i.e. the pointed path not being present anymore) and provide a way to delete them. |
|
Adding a path idempotentlyUnimplemented. The nearest primitive is $ mise config set task_config.includes '/a,/b' --type list
$ mise config set task_config.includes '/c' --type list
# mise.toml
[task_config]
includes = ["/c"]It replaces the list rather than appending to it, so a One thing worth knowing before automating this
So the moment a script writes an Detecting a broken includeSilent today, and deliberately so. Measured with $ mise tasks ls
hello
$ mise tasks validate
✓ All 1 task(s) validated successfullyNothing at I proposed making it warn (#11883). jdx declined it, and the reasoning is worth repeating because it answers your ask rather than deferring it: include entries are search candidates, and a missing candidate can be perfectly deliberate — the documentation recommends listing all five default directories when you add a custom one, and most of those are normally absent, so warning would make the documented configuration noisy. It matches how other config and env-file search paths behave: they quietly skip what is not there. So this is not an oversight waiting for a patch; it is the intended behaviour. Deleting a broken includeUnimplemented, and it follows from the point above — if a missing entry is a legitimate state rather than an error, there is no "broken" for such a command to clean up. What that leavesThe idempotent-append idea is the only one of the three not settled by a design decision, and it is unclaimed. Until then the shape that works is to build the whole list yourself — the defaults you want, plus your own paths — and write it in one |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
It would be nice to have a
mise taskscommand to include externaltasks.tomlconfiguration in the global[task_config]section.Purpose: pulling global tasks from a git repository and automate their setup in the global configuration file.
Example:
All reactions