-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
73 lines (63 loc) · 1.33 KB
/
Taskfile.yaml
File metadata and controls
73 lines (63 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# https://taskfile.dev
version: "3"
tasks:
default:
cmds:
- task: run
init:
desc: "Initialize your workspace."
aliases:
- "i"
preconditions:
- sh: "[ ! -f .env ]"
msg: "Workspace has already been initialized."
silent: true
cmds:
- echo 'SESSION_TOKEN=""' > .env
- |
echo ".env file has been created. Please grab your session token from the adventofcode.com \
website and paste it into the SESSION_TOKEN variable in the .env file."
new:
desc: "Create a new day project."
aliases:
- "n"
cmds:
- bash scripts/new.sh
commit:
desc: "Commit the latest day solution."
aliases:
- "c"
cmds:
- bash scripts/commit.sh
test:
desc: "Run all unit tests."
aliases:
- "t"
cmds:
- cargo test
run:
aliases:
- "r"
desc: "Run solution with user input."
cmds:
- bash scripts/run.sh {{.CLI_ARGS}}
runtest:
aliases:
- "rt"
desc: "Run solution with test input."
cmds:
- bash scripts/run.sh {{.CLI_ARGS}} --test
releaserun:
aliases:
- "rr"
env:
RELEASE: "true"
cmds:
- bash scripts/run.sh {{.CLI_ARGS}}
releaseruntest:
aliases:
- "rrt"
env:
RELEASE: "true"
cmds:
- bash scripts/run.sh {{.CLI_ARGS}} --test