forked from pinecone-io/go-pinecone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
17 lines (17 loc) · 922 Bytes
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
test:
#!/usr/bin/env bash
set -o allexport
source .env
set +o allexport
go test -count=1 -v ./pinecone
bootstrap:
go install google.golang.org/protobuf/cmd/[email protected]
go install google.golang.org/grpc/cmd/[email protected]
go install github.com/oapi-codegen/oapi-codegen/v2/cmd/[email protected]
go install golang.org/x/tools/cmd/godoc@latest
gen:
protoc --experimental_allow_proto3_optional --proto_path=apis/proto --go_opt=module="github.com/pinecone-io/go-pinecone" --go-grpc_opt=module="github.com/pinecone-io/go-pinecone" --go_out=. --go-grpc_out=. apis/proto/pinecone/data/v1/vector_service.proto
oapi-codegen --package=control --generate types,client apis/openapi/control/v1/control_v1.yaml > internal/gen/control/control_plane.oas.go
docs:
@echo "Serving docs at http://localhost:6060/pkg/github.com/pinecone-io/go-pinecone/pinecone/"
@godoc -http=:6060 >/dev/null