--- # https://taskfile.dev # # Taskfile.project.yml for your main project tasks. Must be commited. # If you always want the last version of the task templates, add the following line in your .gitignore file # /Taskfile.d/ # version: '3' vars: # TO MODIFY: Task templates to download separated by comma # Example: TASK_TEMPLATES: go,lint,yarn TASK_TEMPLATES: git,lint tasks: 00-get-list-templates: # Get the list of templates to download # Do not remove cmds: - echo "{{.TASK_TEMPLATES}}" silent: true 10-pre-commit: desc: "[PROJECT] Pre-commit checks." cmds: - date > {{.FILE_TASK_START}} - defer: rm -f {{.FILE_TASK_START}} - task lint:pre-commit - echo "" && echo "Markdown:" && echo "=========" - task lint:markdown GLOB='"**/*.md" "#target" "#.cache"' - echo "" && echo "YAML:" && echo "=====" - task lint:yaml - echo "" && echo "Lychee:" && echo "=======" - task lint:lychee - echo "" && echo "Checks Start $(cat {{.FILE_TASK_START}}) - End $(date)" silent: true project-set-version: desc: "[PROJECT] Set version in Cargo.toml files. Arguments: VERSION|V=x.y.z" vars: FILE_VERSION: Cargo.toml VERSION: '{{.VERSION | default .V}}' cmds: - echo "Version {{.VERSION}}" - sed -i.bu "s/0\.0\.0/{{.VERSION}}/g" Cargo.toml - defer: rm -f Cargo.toml.bu preconditions: - sh: test -n "{{.VERSION}}" msg: "VERSION|V argument is required" silent: true