basic year files

This commit is contained in:
Yanick Champoux 2023-11-30 10:59:30 -05:00
parent f8db5b1077
commit ea5286a545

35
2023/Taskfile.yaml Normal file
View File

@ -0,0 +1,35 @@
# 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