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
.PHONY: help local remote mock release test lint clean
help:
@echo "all-smi"
@echo ""
@echo "Available targets:"
@echo ""
@echo "Setup & Building:"
@echo " local Run for local view mode"
@echo " remote Run for remote view mode"
@echo " api Run for API mode"
@echo " mock Run mock server for testing"
@echo ""
@echo "Quality & Testing:"
@echo " test Run tests"
@echo ""
@echo "Quality & Testing:"
@echo " validate Validate links and content"
@echo " lint Run linting on documentation"
@echo " test Run all tests"
@echo ""
@echo "Deployment:"
@echo " release Build release binaries"
@echo " clean Clean build artifacts"
local:
cargo run --bin all-smi -- view
api:
cargo run --bin all-smi -- api
remote:
cargo run --bin all-smi -- view --hostfile ./hosts.csv
mock:
cargo run --features mock --bin all-smi-mock-server -- --port-range 10001-10050
release:
cargo build --release
test:
cargo test --all
lint:
cargo fmt --features=all -- --check
cargo clippy --features=all -- -D warnings
clean:
cargo clean