Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ mocks-gen: mocks-rm ## Generate mocks for all the defined interfaces.
mockgen -package=mockschemaclientbound -source=pkg/datastore/clients/schema/schemaClientBound.go -destination=$(MOCKDIR)/mockschemaclientbound/client.go
mockgen -package=mockcacheclient -source=pkg/cache/cache.go -destination=$(MOCKDIR)/mockcacheclient/client.go
mockgen -package=mocktarget -source=pkg/datastore/target/target.go -destination=$(MOCKDIR)/mocktarget/target.go
mockgen -package=mockvalidationclient -source=pkg/datastore/clients/validationClient.go -destination=$(MOCKDIR)/mockvalidationclient/client.go
mockgen -package=mockTreeEntry -source=pkg/tree/entry.go -destination=$(MOCKDIR)/mocktreeentry/entry.go

.PHONY: mocks-rm
Expand All @@ -88,4 +87,13 @@ format_yang:
.PHONY: goreleaser-nightly
goreleaser-nightly:
go install github.com/goreleaser/goreleaser/v2@latest
goreleaser release --clean -f .goreleaser.nightlies.yml --skip=validate
goreleaser release --clean -f .goreleaser.nightlies.yml --skip=validate

.PHONY: proto
CACHE_OUT_DIR := $(CURDIR)/pkg/tree/tree_persist

proto:
clang-format -i -style=file:$(CURDIR)/proto/clang-format.style $(CURDIR)/proto/tree_persist.proto

mkdir -p $(CACHE_OUT_DIR)
protoc --go_out=$(CACHE_OUT_DIR) --go-grpc_out=$(CACHE_OUT_DIR) -I $(CURDIR)/proto $(CURDIR)/proto/tree_persist.proto
2 changes: 0 additions & 2 deletions client/cmd/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,5 @@ var dataCmd = &cobra.Command{

func init() {
rootCmd.AddCommand(dataCmd)

dataCmd.PersistentFlags().StringVarP(&candidate, "candidate", "", "", "datastore (candidate) name")
dataCmd.PersistentFlags().StringVarP(&datastoreName, "ds", "", "", "datastore target name")
}
75 changes: 0 additions & 75 deletions client/cmd/data_diff.go

This file was deleted.

151 changes: 0 additions & 151 deletions client/cmd/data_get.go

This file was deleted.

6 changes: 3 additions & 3 deletions client/cmd/data_getIntent.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ var dataGetIntentCmd = &cobra.Command{
SilenceUsage: true,
RunE: func(cmd *cobra.Command, _ []string) error {
req := &sdcpb.GetIntentRequest{
Name: datastoreName,
Intent: intentName,
Priority: priority,
DatastoreName: datastoreName,
Intent: intentName,
Format: sdcpb.Format_Intent_Format_JSON,
}
ctx, cancel := context.WithCancel(cmd.Context())
defer cancel()
Expand Down
2 changes: 1 addition & 1 deletion client/cmd/data_listIntent.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var dataListIntentCmd = &cobra.Command{
SilenceUsage: true,
RunE: func(cmd *cobra.Command, _ []string) error {
req := &sdcpb.ListIntentRequest{
Name: datastoreName,
DatastoreName: datastoreName,
}
ctx, cancel := context.WithCancel(cmd.Context())
defer cancel()
Expand Down
108 changes: 0 additions & 108 deletions client/cmd/data_setIntent.go

This file was deleted.

Loading
Loading