-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
96 lines (76 loc) · 1.5 KB
/
Taskfile.yml
File metadata and controls
96 lines (76 loc) · 1.5 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
version: '3'
env:
DISPLAY: ':2'
ARGS: '--config-file=./debug.toml {{.CLI_ARGS}}'
tasks:
# Test helpers
test:
cmds:
- cargo test -- --nocapture
cap:
cmds:
- cargo test
trace:
env:
RUST_BACKTRACE: 1
cmds:
- cargo test
test-*:
vars:
MOD: '{{index .MATCH 0}}'
cmds:
- cargo test {{.MOD}}_test -- --include-ignored
cap-*:
vars:
MOD: '{{index .MATCH 0}}'
cmds:
- cargo test {{.MOD}}_test -- --no-capture --include-ignored
# Debug helpers
debug:
cmds:
- cargo run -- -d {{.DISPLAY}} --replace --debug {{.ARGS}}
valgrind:
aliases: [v]
cmds:
- cargo valgrind run -- -d {{.DISPLAY}} --replace {{.ARGS}}
# Cargo helpers
build:
cmds:
- cargo build
release:
cmds:
- cargo build --release
pkglist:
cmds:
- cargo package --list
doc:
cmds:
- cargo doc
doctest:
cmds:
- cargo test --doc
run:
cmds:
- cargo run -- -d {{.DISPLAY}} {{.ARGS}}
clean:
cmds:
- cargo clean
bloat:
cmds:
- cargo bloat
# Tool helpers
background:
aliases: [bg]
cmds:
- xsetroot -d {{.DISPLAY}} -solid "#595959"
alacritty:
aliases: [a]
cmds:
- zsh -c "DISPLAY={{.DISPLAY}} alacritty &"
xephyr:
aliases: [x]
cmds:
- zsh -c "Xephyr -ac -noreset +extension RANDR +xinerama -name xeph640 -screen 640x480 -resizeable -reset {{.DISPLAY}} &>/dev/null &"
tray:
cmds:
- yad --notification