Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release-19.0] Fix some binaries to print the versions (#15306) #15310

Merged
merged 1 commit into from
Feb 20, 2024
Merged
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
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
Loading