Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hverlin committed Dec 12, 2024
1 parent 1a2236b commit 4f72f90
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/tasks/toml-tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,11 @@ run = 'echo {{flag(name=("myflag")}}'

```toml
[tasks.maybeClean]
run = """if [ '{{flag(name='clean')}}' = 'true' ]; then echo 'cleaning' ; fi""",
run = """
if [ '{{flag(name='clean')}}' = 'true' ]; then
echo 'cleaning'
fi
"""
# execute: mise run maybeClean --clean
# runs: echo cleaning
```
Expand All @@ -170,7 +174,7 @@ deno = 'latest'

[tasks.download_task]
description = "Shows that you can use deno in a task"
shell = 'deno eval'
shell = 'deno eval' # or use a shebang: #!/usr/bin/env -S deno run
run = """
import ProgressBar from "jsr:@deno-library/progress";
import { delay } from "jsr:@std/async";
Expand Down

0 comments on commit 4f72f90

Please sign in to comment.