@@ -289,14 +289,22 @@ tasks:
289
289
290
290
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-go-task/Taskfile.yml
291
291
go:fix :
292
- desc : Modernize usages of outdated APIs
292
+ desc : |
293
+ Modernize usages of outdated APIs.
294
+ Environment variable parameters:
295
+ - GO_MODULE_PATH: Path of the Go module root (default: {{.DEFAULT_GO_MODULE_PATH}}).
296
+ - GO_PACKAGES: List of Go packages to modernize (default: all packages of the module).
293
297
dir : " {{default .DEFAULT_GO_MODULE_PATH .GO_MODULE_PATH}}"
294
298
cmds :
295
299
- go fix {{default .DEFAULT_GO_PACKAGES .GO_PACKAGES}}
296
300
297
301
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-go-task/Taskfile.yml
298
302
go:format :
299
- desc : Format Go code
303
+ desc : |
304
+ Format Go code.
305
+ Environment variable parameters:
306
+ - GO_MODULE_PATH: Path of the Go module root (default: {{.DEFAULT_GO_MODULE_PATH}}).
307
+ - GO_PACKAGES: List of Go packages to modernize (default: all packages of the module).
300
308
dir : " {{default .DEFAULT_GO_MODULE_PATH .GO_MODULE_PATH}}"
301
309
cmds :
302
310
- go fmt {{default .DEFAULT_GO_PACKAGES .GO_PACKAGES}}
@@ -313,7 +321,11 @@ tasks:
313
321
314
322
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-go-task/Taskfile.yml
315
323
go:lint :
316
- desc : Lint Go code
324
+ desc : |
325
+ Lint Go code
326
+ Environment variable parameters:
327
+ - GO_MODULE_PATH: Path of the Go module root (default: {{.DEFAULT_GO_MODULE_PATH}}).
328
+ - GO_PACKAGES: List of Go packages to modernize (default: all packages of the module).
317
329
dir : " {{default .DEFAULT_GO_MODULE_PATH .GO_MODULE_PATH}}"
318
330
cmds :
319
331
- |
@@ -342,7 +354,11 @@ tasks:
342
354
343
355
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/test-go-task/Taskfile.yml
344
356
go:test :
345
- desc : Run unit tests
357
+ desc : |
358
+ Run unit tests.
359
+ Environment variable parameters:
360
+ - GO_MODULE_PATH: Path of the Go module root (default: {{.DEFAULT_GO_MODULE_PATH}}).
361
+ - GO_PACKAGES: List of Go packages to test (default: all packages of the module).
346
362
dir : " {{default .DEFAULT_GO_MODULE_PATH .GO_MODULE_PATH}}"
347
363
cmds :
348
364
- |
@@ -374,7 +390,10 @@ tasks:
374
390
375
391
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-go-task/Taskfile.yml
376
392
go:tidy :
377
- desc : Refresh dependency metadata
393
+ desc : |
394
+ Refresh dependency metadata.
395
+ Environment variable parameters:
396
+ - GO_MODULE_PATH: Path of the Go module root (default: {{.DEFAULT_GO_MODULE_PATH}}).
378
397
dir : " {{default .DEFAULT_GO_MODULE_PATH .GO_MODULE_PATH}}"
379
398
vars :
380
399
GO_VERSION : 1.24.0
@@ -383,7 +402,11 @@ tasks:
383
402
384
403
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-go-task/Taskfile.yml
385
404
go:vet :
386
- desc : Check for errors in Go code
405
+ desc : |
406
+ Check for errors in Go code.
407
+ Environment variable parameters:
408
+ - GO_MODULE_PATH: Path of the Go module root (default: {{.DEFAULT_GO_MODULE_PATH}}).
409
+ - GO_PACKAGES: List of Go packages to test (default: all packages of the module).
387
410
dir : " {{default .DEFAULT_GO_MODULE_PATH .GO_MODULE_PATH}}"
388
411
cmds :
389
412
- go vet {{default .DEFAULT_GO_PACKAGES .GO_PACKAGES}}
@@ -454,21 +477,23 @@ tasks:
454
477
markdownlint-cli \
455
478
"**/*.md"
456
479
457
- # Parameter variables:
458
- # - PROJECT_PATH: path of the npm-managed project. Default value: "./"
459
480
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/npm-task/Taskfile.yml
460
481
npm:install-deps :
461
- desc : Install dependencies managed by npm
482
+ desc : |
483
+ Install dependencies managed by npm.
484
+ Environment variable parameters:
485
+ - PROJECT_PATH: Path of the npm-managed project (default: {{.DEFAULT_NPM_PROJECT_PATH}}).
462
486
dir : |
463
487
"{{default .DEFAULT_NPM_PROJECT_PATH .PROJECT_PATH}}"
464
488
cmds :
465
489
- npm install
466
490
467
- # Parameter variables:
468
- # - PROJECT_PATH: path of the npm-managed project. Default value: "./"
469
491
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-npm-task/Taskfile.yml
470
492
npm:validate :
471
- desc : Validate npm configuration files against their JSON schema
493
+ desc : |
494
+ Validate npm configuration files against their JSON schema.
495
+ Environment variable parameters:
496
+ - PROJECT_PATH: Path of the npm-managed project (default: {{.DEFAULT_NPM_PROJECT_PATH}}).
472
497
vars :
473
498
# Source: https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/package.json
474
499
SCHEMA_URL : https://json.schemastore.org/package.json
@@ -632,11 +657,12 @@ tasks:
632
657
flake8 \
633
658
--show-source
634
659
635
- # Parameter variables:
636
- # - SCRIPT_PATH: path of the script to be checked.
637
660
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-shell-task/Taskfile.yml
638
661
shell:check :
639
- desc : Check for problems with shell scripts
662
+ desc : |
663
+ Check for problems with shell scripts.
664
+ Environment variable parameters:
665
+ - SCRIPT_PATH: path of the script to be checked.
640
666
cmds :
641
667
- |
642
668
if [[ "{{.SCRIPT_PATH}}" == "" ]]; then
@@ -655,11 +681,12 @@ tasks:
655
681
--format={{default "tty" .SHELLCHECK_FORMAT}} \
656
682
"{{.SCRIPT_PATH}}"
657
683
658
- # Parameter variables:
659
- # - SCRIPT_PATH: path of the script to be checked.
660
684
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-shell-task/Taskfile.yml
661
685
shell:check-mode :
662
- desc : Check for non-executable shell scripts
686
+ desc : |
687
+ Check for non-executable shell scripts.
688
+ Environment variable parameters:
689
+ - SCRIPT_PATH: path of the script to be checked.
663
690
cmds :
664
691
- |
665
692
if [[ "{{.SCRIPT_PATH}}" == "" ]]; then
@@ -670,11 +697,12 @@ tasks:
670
697
- |
671
698
test -x "{{.SCRIPT_PATH}}"
672
699
673
- # Parameter variables:
674
- # - SCRIPT_PATH: path of the script to be formatted.
675
700
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-shell-task/Taskfile.yml
676
701
shell:format :
677
- desc : Format shell script files
702
+ desc : |
703
+ Format shell script files.
704
+ Environment variable parameters:
705
+ - SCRIPT_PATH: path of the script to be formatted.
678
706
cmds :
679
707
- |
680
708
if [[ "{{.SCRIPT_PATH}}" == "" ]]; then
@@ -689,7 +717,9 @@ tasks:
689
717
fi
690
718
- shfmt -w "{{.SCRIPT_PATH}}"
691
719
692
- # Make a temporary file named according to the passed TEMPLATE variable and print the path passed to stdout
720
+ # Make a temporary file and print the path passed to stdout.
721
+ # Environment variable parameters:
722
+ # - TEMPLATE: template for the format of the filename.
693
723
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/windows-task/Taskfile.yml
694
724
utility:mktemp-file :
695
725
vars :
@@ -711,7 +741,9 @@ tasks:
711
741
vars :
712
742
RAW_PATH : " {{.RAW_PATH}}"
713
743
714
- # Print a normalized version of the path passed via the RAW_PATH variable to stdout
744
+ # Print a normalized version of the path to stdout.
745
+ # Environment variable parameters:
746
+ # - RAW_PATH: the path to be normalized.
715
747
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/windows-task/Taskfile.yml
716
748
utility:normalize-path :
717
749
cmds :
0 commit comments