Rework: 4 tabs by func
Deploy / deploy (push) Successful in 10s

This commit is contained in:
2026-08-29 13:33:17 +05:00
parent dfa70e96e3
commit 0857d77a01
18 changed files with 1239 additions and 314 deletions
+2 -1
View File
@@ -30,6 +30,7 @@ dev-web:
test: ## Smoke-test the RPC endpoints
@go build -o bin/hub-api ./server
@./bin/hub-api & sleep 1; \
curl -sf -X POST localhost:8080/homelab.v1.HomelabService/ListSections -H 'Content-Type: application/json' -d '{}' | grep -q '"cpu"' || exit 1; \
curl -sf -X POST localhost:8080/homelab.v1.HomelabService/ListContent -H 'Content-Type: application/json' -d '{}' | grep -q '"cpu"' || exit 1; \
curl -sf -X POST localhost:8080/homelab.v1.HomelabService/ListDocs -H 'Content-Type: application/json' -d '{}' | grep -q 'test.md' || exit 1; \
curl -sf -X POST localhost:8080/homelab.v1.HomelabService/RunScript -H 'Content-Type: application/json' -d '{"name":"greet","args":["pony","42"]}' | grep -q 'arg1: pony' || exit 1; \
kill %1; echo OK