-
Notifications
You must be signed in to change notification settings - Fork 0
/
Justfile
44 lines (37 loc) · 1.04 KB
/
Justfile
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
# List the available justfile recipes.
@default:
just --list
# Format, vet, and test Go code.
check:
go fmt ./...
go vet ./...
GOEXPERIMENT=loopvar go test ./... -cover
# Verbosely format, vet, and test Go code.
checkv:
go fmt ./...
go vet ./...
GOEXPERIMENT=loopvar go test -v ./... -cover
# Lint code using staticcheck.
lint:
staticcheck -f stylish ./...
# Test and provide HTML coverage report.
cover:
go test ./... -coverprofile=coverage.out
go tool cover -html=coverage.out
# List the outdated go modules.
outdated:
go list -u -m all
# Run the ASRL Keysight E3631A power supply example application.
e3631a port:
#!/usr/bin/env bash
echo '# ASRL Keysight E3631A Example Application'
cd {{justfile_directory()}}/examples/keysight/e3631a
env go build -o e3631a
./e3631a -port={{port}}
# Run the ASRL Keysight E3631A power supply example application.
ds345 port:
#!/usr/bin/env bash
echo '# ASRL SRS DS345 Example Application'
cd {{justfile_directory()}}/examples/srs/ds345
env go build -o ds345
./ds345 -port={{port}}