You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/tasks/task-configuration.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -641,6 +641,19 @@ For local and monorepo task discovery, mise uses the nearest config file that de
641
641
That means a child config's `includes` replaces both the defaults and any `includes` defined by parent configs for that directory.
642
642
Global config files are loaded independently, so each global config file uses its own `task_config.includes` or the default directories if `includes` is unset.
643
643
644
+
Set `task_config.includes_mode = "extend"` on the config file whose `task_config.includes` is selected to add `includes` to the defaults and the other config files for the same task scope:
645
+
646
+
```toml
647
+
[task_config]
648
+
includes = [
649
+
"mytasks",
650
+
"tasks.toml",
651
+
]
652
+
includes_mode = "extend"
653
+
```
654
+
655
+
With `includes_mode = "extend"`, mise keeps the default file-task directories and merges the `task_config.includes` entries from every config file in that task scope. If `includes_mode = "extend"` is only set on a config file whose `includes` are replaced by another config file, it has no effect.
656
+
644
657
If using included task toml files, note that they have a different format than the `mise.toml` file. They are just a list of tasks.
645
658
The file should be the same format as the `[tasks]` section of `mise.toml` but without the `[task]` prefix:
0 commit comments