mirror of
https://github.com/kubescape/kubescape.git
synced 2026-03-04 10:40:37 +00:00
24 lines
394 B
Go
24 lines
394 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"github.com/armosec/kubescape/clihandler/cmd"
|
|
)
|
|
|
|
func main() {
|
|
CheckLatestVersion()
|
|
cmd.Execute()
|
|
}
|
|
|
|
func CheckLatestVersion() {
|
|
latest, err := cmd.GetLatestVersion()
|
|
if err != nil {
|
|
fmt.Fprintf(os.Stderr, "error: %v\n", err)
|
|
} else if latest != cmd.BuildNumber {
|
|
fmt.Println("Warning: You are not updated to the latest release: " + latest)
|
|
}
|
|
|
|
}
|