kubearmor-client/cmd/selfupdate.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
602 B
Go

// SPDX-License-Identifier: Apache-2.0
// Copyright 2022 Authors of KubeArmor
package cmd
import (
"github.com/kubearmor/kubearmor-client/selfupdate"
"github.com/spf13/cobra"
)
// selfUpdateCmd represents the get command
var selfUpdateCmd = &cobra.Command{
Use: "selfupdate",
Short: "selfupdate this cli tool",
Long: `selfupdate this cli tool for checking the latest release on the github`,
RunE: func(cmd *cobra.Command, args []string) error {
if err := selfupdate.SelfUpdate(client); err != nil {
return err
}
return nil
},
}
func init() {
rootCmd.AddCommand(selfUpdateCmd)
}