Skip to content

Commit

Permalink
docs: fix Environment variables passed to tasks section (#3378)
Browse files Browse the repository at this point in the history
* docs: fix `Environment variables passed to tasks` section

* typo
  • Loading branch information
hverlin authored Dec 5, 2024
1 parent 4683b32 commit 83da7f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ min_version = '2024.11.1'

- You can find the JSON schema for `.mise.toml` [here](https://github.com/jdx/mise/blob/main/schema/mise.json) or at <https://mise.jdx.dev/schema/mise.json>.
- Some editors can load it automatically to provide autocompletion and validation for when editing a `mise.toml` file ([VSCode](https://code.visualstudio.com/docs/languages/json#_json-schemas-and-settings), [IntelliJ](https://www.jetbrains.com/help/idea/json.html#ws_json_using_schemas), [neovim](https://github.com/b0o/SchemaStore.nvim), etc.). It is also available in the [JSON schema store](https://www.schemastore.org/json/).
- Note that for `included tasks` (see [task configuration](https://mise.jdx.dev/tasks/#task-configuration), there is another schema: <https://mise.jdx.dev/schema/mise-task.json>
- Note that for `included tasks` (see [task configuration](/tasks/#task-configuration), there is another schema: <https://mise.jdx.dev/schema/mise-task.json>)

## Global config: `~/.config/mise/config.toml`

Expand Down
4 changes: 2 additions & 2 deletions docs/tasks/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ I don't want to turn all file tasks into tera templates just for this feature.
The following environment variables are passed to the task:

- `MISE_ORIGINAL_CWD`: The original working directory from where the task was run.
- `MISE_CONFIG_ROOT` or `root`: The directory containing the `mise.toml` file where the task was defined.
- `MISE_PROJECT_ROOT`: The root of the project.
- `MISE_CONFIG_ROOT`: The directory containing the `mise.toml` file where the task was defined.
- `MISE_PROJECT_ROOT` or `root`: The root of the project.
- `MISE_TASK_NAME`: The name of the task being run.
- `MISE_TASK_DIR`: The directory containing the task script.
- `MISE_TASK_FILE`: The full path to the task script.

0 comments on commit 83da7f2

Please sign in to comment.