adventofcode/Taskfile.yaml

32 lines
523 B
YAML
Raw Normal View History

2022-12-01 16:41:34 +00:00
# https://taskfile.dev
2022-12-01 18:57:29 +00:00
version: "3"
2022-12-01 16:41:34 +00:00
vars:
2022-12-07 23:42:05 +00:00
YEAR: 2022
DAY:
sh: date '+%d' | perl -pe's/^0//'
2022-12-01 16:41:34 +00:00
GREETING: Hello, World!
tasks:
2022-12-01 17:50:41 +00:00
"precommit:init": pre-commit install -t pre-merge-commit -t pre-push
2022-12-01 18:55:34 +00:00
integrate:
cmds:
- git is-clean
- git co main
- git weld -
2022-12-01 18:15:20 +00:00
lint:fix:
cmds:
- npx prettier --write {{.CLI_ARGS | default "." }}
2022-12-07 23:42:05 +00:00
page:
cmds:
- firefox https://adventofcode.com/{{.YEAR}}/day/{{.DAY}}
2022-12-01 16:41:34 +00:00
default:
cmds:
- echo "{{.GREETING}}"
silent: true