From 7dd9180fb9aeee0d0e6c5ef5329b0d80a63e4fa6 Mon Sep 17 00:00:00 2001 From: reshke Date: Mon, 8 Jul 2024 13:42:57 +0500 Subject: [PATCH] Fix spqrdump binary name. (#700) * Fix spqrdump binary name. * More * even more --- .gitignore | 4 ++-- Makefile | 2 +- cmd/spqrdump/main.go | 4 ++-- test/feature/features/spqrdump.feature | 8 ++++---- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 02bc408e8..0813ee5c3 100644 --- a/.gitignore +++ b/.gitignore @@ -9,7 +9,7 @@ spqr-worldmock spqr-balancer spqr-mover spqr-workloadreplay -spqrdump +spqr-dump y.output *.swp *.swo @@ -17,4 +17,4 @@ memqdb.json test/feature/generatedFeatures test/feature/logs yacc/console/gram.y.save -.DS_Store \ No newline at end of file +.DS_Store diff --git a/Makefile b/Makefile index 57f52fac3..bd2891b8f 100644 --- a/Makefile +++ b/Makefile @@ -43,7 +43,7 @@ build_workloadreplay: go build -pgo=auto -o spqr-workloadreplay ./cmd/workloadreplay build_spqrdump: - go build -pgo=auto -o spqrdump ./cmd/spqrdump + go build -pgo=auto -o spqr-dump ./cmd/spqrdump build: build_balancer build_coordinator build_coorctl build_router build_mover build_worldmock build_workloadreplay build_spqrdump diff --git a/cmd/spqrdump/main.go b/cmd/spqrdump/main.go index d736d1ccd..87e2ef1c3 100644 --- a/cmd/spqrdump/main.go +++ b/cmd/spqrdump/main.go @@ -25,7 +25,7 @@ func Dial(addr string) (*grpc.ClientConn, error) { } var rootCmd = &cobra.Command{ - Use: "spqrdump -e localhost:7003", + Use: "spqr-dump -e localhost:7003", CompletionOptions: cobra.CompletionOptions{ DisableDefaultCmd: true, }, @@ -260,7 +260,7 @@ var dump = &cobra.Command{ } spqrlog.Zero.Debug(). Str("endpoint", endpoint). - Msg("dialing spqrdump on") + Msg("dialing spqr-dump on") switch proto { case "grpc": diff --git a/test/feature/features/spqrdump.feature b/test/feature/features/spqrdump.feature index cb2b0a321..3d1d6fe48 100644 --- a/test/feature/features/spqrdump.feature +++ b/test/feature/features/spqrdump.feature @@ -1,4 +1,4 @@ -Feature: spqrdump test +Feature: spqr-dump test Background: # # Make host "coordinator" take control @@ -25,7 +25,7 @@ Feature: spqrdump test When I run command on host "router" """ - /spqr/spqrdump dump -e regress_router:7000 + /spqr/spqr-dump dump -e regress_router:7000 """ Then command return code should be "0" And command output should match regexp @@ -48,7 +48,7 @@ Feature: spqrdump test When I run command on host "router" """ - /spqr/spqrdump dump -e regress_router:7000 + /spqr/spqr-dump dump -e regress_router:7000 """ Then command return code should be "0" And command output should match regexp @@ -71,7 +71,7 @@ Feature: spqrdump test When I run command on host "router" """ - /spqr/spqrdump dump -e regress_router:7000 + /spqr/spqr-dump dump -e regress_router:7000 """ Then command return code should be "0" And command output should match regexp