Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Improve docs for toml based tasks #44

Open
jatinn opened this issue Mar 9, 2024 · 0 comments
Open

Improve docs for toml based tasks #44

jatinn opened this issue Mar 9, 2024 · 0 comments

Comments

@jatinn
Copy link

jatinn commented Mar 9, 2024

one of the examples on the page https://mise.jdx.dev/tasks/toml-tasks.html#toml-based-tasks is

[tasks.test]
description = 'Run automated tests'
run = [ # multiple commands are run in series
    'cargo test',
    './scripts/test-e2e.sh',
]
dir = "{{cwd}}" # run in user's cwd, default is the project's base directory

however the comment about the dir option seems incorrect based on my testing, for toml tasks using the dir option almost always caused the task to fail. also the default seems to be the cwd instead of the project root, would be good to get some clarity around the correct behaviour.

feel like the confusion from the docs is what led to folks opening:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant