-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
34 lines (29 loc) · 809 Bytes
/
Copy pathTaskfile.yml
File metadata and controls
34 lines (29 loc) · 809 Bytes
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
version: '3'
tasks:
test:
desc: Run all tests (conversion tests self-skip when qemu-img is absent)
cmds:
- go test ./...
vet:
desc: Static checks
cmds:
- go vet ./...
tidy:
desc: Tidy module dependencies
cmds:
- go mod tidy
build:
desc: Build ./bin/diskoci
cmds:
- go build -o ./bin/diskoci ./cmd/diskoci
install:
desc: Build + copy ./bin/diskoci → ~/.local/bin/diskoci
deps: [build]
silent: true
cmds:
- mkdir -p ~/.local/bin
- cp ./bin/diskoci ~/.local/bin/diskoci
# Re-apply xattr at the destination — OS provenance is path-keyed
# (same dance as devcell's cell:install).
- '[ "$(uname -s)" != "Darwin" ] || xattr -c ~/.local/bin/diskoci'
- echo "installed ~/.local/bin/diskoci"