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-08 15:15:42 +00:00
|
|
|
DAY_FORMATTED:
|
|
|
|
sh: date '+%d'
|
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-08 15:15:42 +00:00
|
|
|
download:
|
|
|
|
cmds:
|
2022-12-12 00:32:35 +00:00
|
|
|
- hygen day new --day {{.DAY_FORMATTED}}
|
2022-12-08 15:15:42 +00:00
|
|
|
- aoc download -d {{.DAY}} -o -p 2022/{{.DAY_FORMATTED}}/puzzle.md -i 2022/{{.DAY_FORMATTED}}/input
|
|
|
|
|
2022-12-01 16:41:34 +00:00
|
|
|
default:
|
|
|
|
cmds:
|
|
|
|
- echo "{{.GREETING}}"
|
|
|
|
silent: true
|