Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: hejianpeng <hejianpeng2@huawei.com>
  • Loading branch information
zirain committed Feb 3, 2023
1 parent e8a787c commit 39a192c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/egctl/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func rootCommand() *cobra.Command {
DisableAutoGenTag: true,
}

rootCmd.AddCommand(egctl.NewVersionsCommand())
rootCmd.AddCommand(egctl.NewVersionCommand())

return rootCmd
}
4 changes: 2 additions & 2 deletions internal/cmd/egctl/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const (
yamlOutput = "yaml"
)

func NewVersionsCommand() *cobra.Command {
func NewVersionCommand() *cobra.Command {
var (
output string
egContainerName string
Expand All @@ -34,7 +34,7 @@ func NewVersionsCommand() *cobra.Command {
versionCommand := &cobra.Command{
Use: "version",
Aliases: []string{"versions", "v"},
Short: "Show versions",
Short: "Show version",
RunE: func(cmd *cobra.Command, args []string) error {
return versions(cmd.OutOrStdout(), egContainerName, output)
},
Expand Down

0 comments on commit 39a192c

Please sign in to comment.