@@ -157,21 +157,33 @@ tasks:
157
157
158
158
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-go-task/Taskfile.yml
159
159
go:fix :
160
- desc : Modernize usages of outdated APIs
160
+ desc : |
161
+ Modernize usages of outdated APIs.
162
+ Environment variable parameters:
163
+ - GO_MODULE_PATH: Path of the Go module root (default: {{.DEFAULT_GO_MODULE_PATH}}).
164
+ - GO_PACKAGES: List of Go packages to modernize (default: all packages of the module).
161
165
dir : " {{default .DEFAULT_GO_MODULE_PATH .GO_MODULE_PATH}}"
162
166
cmds :
163
167
- go fix {{default .DEFAULT_GO_PACKAGES .GO_PACKAGES}}
164
168
165
169
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-go-task/Taskfile.yml
166
170
go:format :
167
- desc : Format Go code
171
+ desc : |
172
+ Format Go code.
173
+ Environment variable parameters:
174
+ - GO_MODULE_PATH: Path of the Go module root (default: {{.DEFAULT_GO_MODULE_PATH}}).
175
+ - GO_PACKAGES: List of Go packages to modernize (default: all packages of the module).
168
176
dir : " {{default .DEFAULT_GO_MODULE_PATH .GO_MODULE_PATH}}"
169
177
cmds :
170
178
- go fmt {{default .DEFAULT_GO_PACKAGES .GO_PACKAGES}}
171
179
172
180
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-go-task/Taskfile.yml
173
181
go:lint :
174
- desc : Lint Go code
182
+ desc : |
183
+ Lint Go code.
184
+ Environment variable parameters:
185
+ - GO_MODULE_PATH: Path of the Go module root (default: {{.DEFAULT_GO_MODULE_PATH}}).
186
+ - GO_PACKAGES: List of Go packages to modernize (default: all packages of the module).
175
187
dir : " {{default .DEFAULT_GO_MODULE_PATH .GO_MODULE_PATH}}"
176
188
cmds :
177
189
- |
@@ -186,7 +198,11 @@ tasks:
186
198
187
199
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-go-task/Taskfile.yml
188
200
go:vet :
189
- desc : Check for errors in Go code
201
+ desc : |
202
+ Check for errors in Go code.
203
+ Environment variable parameters:
204
+ - GO_MODULE_PATH: Path of the Go module root (default: {{.DEFAULT_GO_MODULE_PATH}}).
205
+ - GO_PACKAGES: List of Go packages to modernize (default: all packages of the module).
190
206
dir : " {{default .DEFAULT_GO_MODULE_PATH .GO_MODULE_PATH}}"
191
207
cmds :
192
208
- go vet {{default .DEFAULT_GO_PACKAGES .GO_PACKAGES}}
@@ -256,7 +272,7 @@ tasks:
256
272
desc : |
257
273
Install dependencies managed by npm.
258
274
Environment variable parameters:
259
- PROJECT_PATH: Path of the npm-managed project (default: {{.DEFAULT_NPM_PROJECT_PATH}}).
275
+ - PROJECT_PATH: Path of the npm-managed project (default: {{.DEFAULT_NPM_PROJECT_PATH}}).
260
276
dir : |
261
277
"{{default .DEFAULT_NPM_PROJECT_PATH .PROJECT_PATH}}"
262
278
run : when_changed
@@ -268,7 +284,7 @@ tasks:
268
284
desc : |
269
285
Validate npm configuration files against their JSON schema.
270
286
Environment variable parameters:
271
- PROJECT_PATH: Path of the npm-managed project (default: {{.DEFAULT_NPM_PROJECT_PATH}}).
287
+ - PROJECT_PATH: Path of the npm-managed project (default: {{.DEFAULT_NPM_PROJECT_PATH}}).
272
288
deps :
273
289
- task : npm:install-deps
274
290
vars :
@@ -380,7 +396,7 @@ tasks:
380
396
desc : |
381
397
Install dependencies managed by Poetry.
382
398
Environment variable parameters:
383
- POETRY_GROUPS: Poetry dependency groups to install (default: install all dependencies).
399
+ - POETRY_GROUPS: Poetry dependency groups to install (default: install all dependencies).
384
400
run : when_changed
385
401
deps :
386
402
- task : poetry:install
@@ -407,7 +423,9 @@ tasks:
407
423
poetry check \
408
424
--lock
409
425
410
- # Make a temporary file named according to the passed TEMPLATE variable and print the path passed to stdout
426
+ # Make a temporary file and print the path passed to stdout.
427
+ # Environment variable parameters:
428
+ # - TEMPLATE: template for the format of the filename.
411
429
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/windows-task/Taskfile.yml
412
430
utility:mktemp-file :
413
431
vars :
@@ -418,7 +436,9 @@ tasks:
418
436
vars :
419
437
RAW_PATH : " {{.RAW_PATH}}"
420
438
421
- # Print a normalized version of the path passed via the RAW_PATH variable to stdout
439
+ # Print a normalized version of the path to stdout.
440
+ # Environment variable parameters:
441
+ # - RAW_PATH: the path to be normalized.
422
442
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/windows-task/Taskfile.yml
423
443
utility:normalize-path :
424
444
cmds :
@@ -431,6 +451,8 @@ tasks:
431
451
echo "{{.RAW_PATH}}"
432
452
fi
433
453
454
+ # Environment variable parameters:
455
+ # - YAMLLINT_FORMAT: yamllint output format (default: colored).
434
456
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-yaml-task/Taskfile.yml
435
457
yaml:lint :
436
458
desc : Check for problems with YAML files
0 commit comments