summaryrefslogtreecommitdiff
path: root/Taskfile.yml
diff options
context:
space:
mode:
authorDJ O'Leary <dijitol@proton.me>2026-06-26 18:04:09 +0200
committerDJ O'Leary <dijitol@proton.me>2026-06-26 18:04:09 +0200
commit6d8fb621d1e93b83786890d6d9cb6f0d8defa8ae (patch)
tree17c90d3984c114aa023600cc5bec6f6004b02243 /Taskfile.yml
parentad4ea5ca4bc9f7540ee1d6a4fa2d881709dc6459 (diff)
refactor!: invert repo directory structure
now is language first
Diffstat (limited to 'Taskfile.yml')
-rw-r--r--Taskfile.yml10
1 files changed, 7 insertions, 3 deletions
diff --git a/Taskfile.yml b/Taskfile.yml
index d21aae2..1628de5 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -19,9 +19,13 @@ tasks:
- DAY
vars:
FORMATTED_DAY: '{{if (lt (atoi .DAY) 10)}}0{{.DAY}}{{else}}{{.DAY}}{{end}}'
- URI: https://adventofcode.com/{{ .YEAR }}/day/{{.DAY}}/input
- INPUT_DIR: '{{.YEAR}}/_input'
+ URI: https://adventofcode.com/{{.YEAR}}/day/{{.DAY}}/input
+ INPUT_DIR: '/.input/{{.YEAR}}'
cmds:
- cmd: mkdir --parents {{.INPUT_DIR}}
- - cmd: curl --cookie 'session={{.SESSION}}' {{.URI}} > {{.INPUT_DIR}}/day_{{.FORMATTED_DAY}}.txt
+ - cmd: curl --cookie 'session={{.SESSION}}' {{.URI}} > {{.INPUT_DIR}}/{{.FORMATTED_DAY}}.txt
silent: true
+
+ git:hooks:
+ desc: sets up the githooks for the project
+ cmd: git config core.hooksPath .githooks