@@ -730,11 +730,12 @@ tasks:
730
730
-s "{{.SCHEMA_PATH}}" \
731
731
-d "{{.DATA_PATH}}"
732
732
733
- # Parameter variables:
734
- # - PROJECT_PATH: path of the npm-managed project. Default value: "./"
735
733
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/npm-task/Taskfile.yml
736
734
npm:install-deps :
737
- desc : Install dependencies managed by npm
735
+ desc : |
736
+ Install dependencies managed by npm.
737
+ Environment variable parameters:
738
+ - PROJECT_PATH: Path of the npm-managed project (default: "./").
738
739
run : when_changed
739
740
dir : |
740
741
"{{default "./" .PROJECT_PATH}}"
@@ -756,11 +757,12 @@ tasks:
756
757
--location project \
757
758
fix
758
759
759
- # Parameter variables:
760
- # - PROJECT_PATH: path of the npm-managed project. Default value: "./"
761
760
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-npm-task/Taskfile.yml
762
761
npm:validate :
763
- desc : Validate npm configuration files against their JSON schema
762
+ desc : |
763
+ Validate npm configuration files against their JSON schema.
764
+ Environment variable parameters:
765
+ - PROJECT_PATH: Path of the npm-managed project (default: "./").
764
766
deps :
765
767
- task : npm:install-deps
766
768
vars :
@@ -956,11 +958,12 @@ tasks:
956
958
cmds :
957
959
- poetry run pytest workflow-templates/assets/deploy-mkdocs-versioned/siteversion/tests
958
960
959
- # Parameter variables:
960
- # - SCRIPT_PATH: path of the script to be checked.
961
961
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-shell-task/Taskfile.yml
962
962
shell:check :
963
- desc : Check for problems with shell scripts
963
+ desc : |
964
+ Check for problems with shell scripts.
965
+ Environment variable parameters:
966
+ - SCRIPT_PATH: path of the script to be checked.
964
967
cmds :
965
968
- |
966
969
if [[ "{{.SCRIPT_PATH}}" == "" ]]; then
@@ -979,11 +982,12 @@ tasks:
979
982
--format={{default "tty" .SHELLCHECK_FORMAT}} \
980
983
"{{.SCRIPT_PATH}}"
981
984
982
- # Parameter variables:
983
- # - SCRIPT_PATH: path of the script to be checked.
984
985
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-shell-task/Taskfile.yml
985
986
shell:check-mode :
986
- desc : Check for non-executable shell scripts
987
+ desc : |
988
+ Check for non-executable shell scripts.
989
+ Environment variable parameters:
990
+ - SCRIPT_PATH: path of the script to be checked.
987
991
cmds :
988
992
- |
989
993
if [[ "{{.SCRIPT_PATH}}" == "" ]]; then
@@ -994,11 +998,12 @@ tasks:
994
998
- |
995
999
test -x "{{.SCRIPT_PATH}}"
996
1000
997
- # Parameter variables:
998
- # - SCRIPT_PATH: path of the script to be formatted.
999
1001
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-shell-task/Taskfile.yml
1000
1002
shell:format :
1001
- desc : Format shell script files
1003
+ desc : |
1004
+ Format shell script files.
1005
+ Environment variable parameters:
1006
+ - SCRIPT_PATH: path of the script to be formatted.
1002
1007
cmds :
1003
1008
- |
1004
1009
if [[ "{{.SCRIPT_PATH}}" == "" ]]; then
@@ -1013,7 +1018,9 @@ tasks:
1013
1018
fi
1014
1019
- shfmt -w "{{.SCRIPT_PATH}}"
1015
1020
1016
- # Make a temporary file named according to the passed TEMPLATE variable and print the path passed to stdout
1021
+ # Make a temporary file and print the path passed to stdout.
1022
+ # Environment variable parameters:
1023
+ # - TEMPLATE: template for the format of the filename.
1017
1024
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/windows-task/Taskfile.yml
1018
1025
utility:mktemp-file :
1019
1026
vars :
@@ -1034,7 +1041,9 @@ tasks:
1034
1041
vars :
1035
1042
RAW_PATH : " {{.RAW_PATH}}"
1036
1043
1037
- # Print a normalized version of the path passed via the RAW_PATH variable to stdout
1044
+ # Print a normalized version of the path to stdout.
1045
+ # Environment variable parameters:
1046
+ # - RAW_PATH: the path to be normalized.
1038
1047
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/windows-task/Taskfile.yml
1039
1048
utility:normalize-path :
1040
1049
cmds :
@@ -1047,6 +1056,8 @@ tasks:
1047
1056
echo "{{.RAW_PATH}}"
1048
1057
fi
1049
1058
1059
+ # Environment variable parameters:
1060
+ # - YAMLLINT_FORMAT: yamllint output format (default: colored).
1050
1061
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-yaml-task/Taskfile.yml
1051
1062
yaml:lint :
1052
1063
desc : Check for problems with YAML files
0 commit comments