From 6d8fb621d1e93b83786890d6d9cb6f0d8defa8ae Mon Sep 17 00:00:00 2001 From: DJ O'Leary Date: Fri, 26 Jun 2026 18:04:09 +0200 Subject: refactor!: invert repo directory structure now is language first --- Taskfile.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Taskfile.yml') 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 -- cgit v1.2.3