This commit is contained in:
admju
2024-09-09 14:17:02 +00:00
parent 550675a4aa
commit 13025746e6
32 changed files with 1597 additions and 664 deletions

View File

@@ -37,5 +37,7 @@ func (this KubecltInstallData) Download() (error) {
///////////////
func (this KubecltInstallData) Version(path string) (string, error) {
return kubectl.Version(path)
cmd := kubectl.KubectlCommand{Bin: path}
cmd.New()
return cmd.GetVersion()
}