-
Notifications
You must be signed in to change notification settings - Fork 0
/
Justfile
52 lines (44 loc) · 1.38 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
45
46
47
48
49
50
51
52
# 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 Prologix VCP GPIB Keysight E3631A example application.
key3631 port gpib:
#!/usr/bin/env bash
echo '# Prologix VCP GPIB Keysight E3631A Example Application'
cd {{justfile_directory()}}/examples/vcp/e3631a
env go build -o e3631a
./e3631a -port={{port}} -gpib={{gpib}}
# Run the Prologix VCP GPIB Keysight 33220A example application.
key33220 port gpib:
#!/usr/bin/env bash
echo '# Prologix VCP GPIB Keysight 33220A Example Application'
cd {{justfile_directory()}}/examples/vcp/key33220a
env go build -o key33220a
./key33220a -port={{port}} -gpib={{gpib}}
# Run the Prologix VCP GPIB SRS DS345 example application.
ds345 port gpib:
#!/usr/bin/env bash
echo '# Prologix VCP GPIB SRS DS345 Example Application'
cd {{justfile_directory()}}/examples/vcp/ds345
env go build -o ds345
./ds345 -port={{port}} -gpib={{gpib}}