From d6b49e3dcc35deb542e1f35d62c56a904c0d7482 Mon Sep 17 00:00:00 2001 From: n4n5 Date: Thu, 18 Sep 2025 18:30:13 -0600 Subject: [PATCH] feat: add documentation for #5134 #5638 --- docs/environments/index.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/environments/index.md b/docs/environments/index.md index 4cb18b801f..0a32a52ce8 100644 --- a/docs/environments/index.md +++ b/docs/environments/index.md @@ -95,6 +95,16 @@ mise en # bar ``` +## Environment in tasks + +Its also possible to define environment inside a task + +```toml [mise.toml] +[tasks.print] +run = "echo $MY_VAR" +env = { _.file = '/path/to/file.env', "MY_VAR" = "my variable" } +``` + ## Lazy eval Environment variables typically are resolved before tools—that way you can configure tool installation