adventofcode/2023/Taskfile.yaml
2023-12-01 12:39:32 -05:00

36 lines
675 B
YAML

# https://taskfile.dev
version: "3"
vars:
YEAR: 2023
DAY:
sh: date '+%d' | perl -pe's/^0//'
DAY_FORMATTED:
sh: date '+%d'
tasks:
aoc-cli:install: cargo install aoc-cli
"precommit:init": pre-commit install -t pre-merge-commit -t pre-push
integrate:
cmds:
- git is-clean
- git co main
- git weld -
lint:fix:
cmds:
- npx prettier --write {{.CLI_ARGS | default "." }}
page:
cmds:
- firefox https://adventofcode.com/{{.YEAR}}/day/{{.DAY}}
download:
cmds:
- hygen day new --day {{.DAY_FORMATTED}}
- aoc download -d {{.DAY}} -o -p {{.DAY_FORMATTED}}/puzzle.md -i {{.DAY_FORMATTED}}/input