Skip to content

Commit

Permalink
Fix some binaries to print the versions (#15306)
Browse files Browse the repository at this point in the history
Signed-off-by: Manan Gupta <manan@planetscale.com>
  • Loading branch information
GuptaManan100 authored Feb 20, 2024
1 parent 999f1c1 commit 27be916
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions go/cmd/mysqlctld/cli/mysqlctld.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ var (
--mysql_port=17100 \
--socket_file=/path/to/socket_file`,
Args: cobra.NoArgs,
Version: servenv.AppVersion.String(),
PreRunE: servenv.CobraPreRunE,
RunE: run,
}
Expand Down
1 change: 1 addition & 0 deletions go/cmd/topo2topo/cli/topo2topo.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ var (
It can also be used to compare data between two topologies.`,
Args: cobra.NoArgs,
PreRunE: servenv.CobraPreRunE,
Version: servenv.AppVersion.String(),
RunE: run,
}
)
Expand Down
1 change: 1 addition & 0 deletions go/cmd/vtexplain/cli/vtexplain.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ If no keyspace name is present, VTExplain will return the following error:
"```\nvtexplain -- -shards 128 --vschema-file vschema.json --schema-file schema.sql --replication-mode \"ROW\" --output-mode text --sql \"INSERT INTO users (user_id, name) VALUES(1, 'john')\"\n```\n",
Args: cobra.NoArgs,
PreRunE: servenv.CobraPreRunE,
Version: servenv.AppVersion.String(),
RunE: run,
}
)
Expand Down
1 change: 1 addition & 0 deletions go/cmd/vttestserver/cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ func New() (cmd *cobra.Command) {
Short: "vttestserver allows users to spawn a self-contained Vitess server for local testing/CI.",
Args: cobra.NoArgs,
PreRunE: servenv.CobraPreRunE,
Version: servenv.AppVersion.String(),
RunE: run,
}

Expand Down
1 change: 1 addition & 0 deletions go/cmd/zkctld/cli/zkctld.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ var (
Use: "zkctld",
Short: "zkctld is a daemon that starts or initializes ZooKeeper with Vitess-specific configuration. It will stay running as long as the underlying ZooKeeper server, and will pass along SIGTERM.",
Args: cobra.NoArgs,
Version: servenv.AppVersion.String(),
PersistentPreRunE: servenv.CobraPreRunE,
PostRun: func(cmd *cobra.Command, args []string) {
logutil.Flush()
Expand Down
3 changes: 2 additions & 1 deletion go/flags/endtoend/zkctld.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ Usage:
zkctld [flags]

Flags:
-h, --help help for zkctld
-h, --help help for zkctld
-v, --version version for zkctld

0 comments on commit 27be916

Please sign in to comment.