From f32d90a5329bcc81cefdcfaf07dc91c404cd7e84 Mon Sep 17 00:00:00 2001 From: Ondrej Fabry Date: Tue, 30 Jul 2019 11:49:42 +0200 Subject: [PATCH] Remove separate version command Signed-off-by: Ondrej Fabry --- cmd/agentctl/cmd/show_version.go | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 cmd/agentctl/cmd/show_version.go diff --git a/cmd/agentctl/cmd/show_version.go b/cmd/agentctl/cmd/show_version.go deleted file mode 100644 index 720caf2a9a..0000000000 --- a/cmd/agentctl/cmd/show_version.go +++ /dev/null @@ -1,29 +0,0 @@ -package cmd - -import ( - "fmt" - "os" - - "github.com/ligato/cn-infra/agent" - - "github.com/spf13/cobra" -) - -// RootCmd represents the base command when called without any subcommands. -var showVersion = &cobra.Command{ - Use: "version", - Aliases: []string{"V"}, - Short: "Show agent version", - Long: ` - Show agent version -`, - Run: versionFunc, -} - -func init() { - RootCmd.AddCommand(showVersion) -} - -func versionFunc(cmd *cobra.Command, args []string) { - fmt.Fprintf(os.Stdout, "agentctl version %s\n", agent.BuildVersion) -}