diff options
Diffstat (limited to 'Taskfile.yml')
| -rw-r--r-- | Taskfile.yml | 10 |
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 |
