kubearmor-client/cmd/version.go
Sahil Raja a0cf786477 Revert "chores(accuknox-cli): update karmor to accuknox-cli"
Signed-off-by: sahil <sahilraja242@gmail.com>
2023-04-13 12:51:33 +05:30

26 lines
546 B
Go

// SPDX-License-Identifier: Apache-2.0
// Copyright 2021 Authors of KubeArmor
package cmd
import (
"github.com/kubearmor/kubearmor-client/version"
"github.com/spf13/cobra"
)
// versionCmd represents the get command
var versionCmd = &cobra.Command{
Use: "version",
Short: "Display version information",
Long: `Display version information`,
RunE: func(cmd *cobra.Command, args []string) error {
if err := version.PrintVersion(client); err != nil {
return err
}
return nil
},
}
func init() {
rootCmd.AddCommand(versionCmd)
}