Skip to content

Commit 669bf33

Browse files
committed
chore: changelog for #2151
1 parent 6f0f38b commit 669bf33

File tree

3 files changed

+122
-143
lines changed

3 files changed

+122
-143
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
- Wildcards can now
1919
[match multiple tasks](https://taskfile.dev/usage/#wildcard-arguments) (#2072,
2020
#2121 by @pd93).
21+
- Added the ability to
22+
[loop over the files specified by the `generates` keyword](https://taskfile.dev/usage/#looping-over-your-tasks-sources-or-generated-files).
23+
This works the same way as looping over sources (#2151 by @sedyh).
2124
- Added the ability to resolve variables when defining an include variable
2225
(#2108, #2113 @pd93).
2326
- The default taskfile (output when using the `--init` flag) is now an embedded

website/blog/2024-05-09-any-variables.mdx

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,8 @@ some of the examples below for some inspiration.
3131
No more comparing strings to "true" or "false". Now you can use actual boolean
3232
values in your templates:
3333

34-
<Tabs defaultValue="2"
35-
values={[
36-
{label: 'Before', value: '1'},
37-
{label: 'After', value: '2'}
38-
]}>
39-
40-
<TabItem value="1">
34+
<Tabs defaultValue="2">
35+
<TabItem value="1" label="Before">
4136

4237
```yaml
4338
version: 3
@@ -51,7 +46,7 @@ tasks:
5146
```
5247
5348
</TabItem>
54-
<TabItem value="2">
49+
<TabItem value="2" label="After">
5550
5651
```yaml
5752
version: 3
@@ -64,7 +59,8 @@ tasks:
6459
- '{{if .BOOL}}echo foo{{end}}' # <-- No need to compare to "true"
6560
```
6661
67-
</TabItem></Tabs>
62+
</TabItem>
63+
</Tabs>
6864
6965
### Arithmetic
7066
@@ -114,13 +110,8 @@ to specify the delimiter. However, we have now added support for looping over
114110
"collection-type" variables using the `for` keyword, so now you are able to loop
115111
over list variables directly:
116112

117-
<Tabs defaultValue="2"
118-
values={[
119-
{label: 'Before', value: '1'},
120-
{label: 'After', value: '2'}
121-
]}>
122-
123-
<TabItem value="1">
113+
<Tabs defaultValue="2">
114+
<TabItem value="1" label="Before">
124115

125116
```yaml
126117
version: 3
@@ -137,7 +128,7 @@ tasks:
137128
```
138129

139130
</TabItem>
140-
<TabItem value="2">
131+
<TabItem value="2" label="After">
141132

142133
```yaml
143134
version: 3
@@ -152,7 +143,8 @@ tasks:
152143
cmd: echo {{.ITEM}}
153144
```
154145

155-
</TabItem></Tabs>
146+
</TabItem>
147+
</Tabs>
156148

157149
## What about maps?
158150

0 commit comments

Comments
 (0)