Skip to content

Commit

Permalink
Add support install required and optional tools (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinuxSuRen committed Sep 7, 2021
1 parent 9bfa4dd commit 8d97c87
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require (
github.com/huandu/xstrings v1.3.2 // indirect
github.com/linuxsuren/cobra-extension v0.0.10
github.com/linuxsuren/go-cli-alias v0.0.6
github.com/linuxsuren/http-downloader v0.0.33
github.com/linuxsuren/http-downloader v0.0.35
github.com/mitchellh/copystructure v1.1.1 // indirect
github.com/spf13/cobra v1.2.1
github.com/spf13/pflag v1.0.5
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,8 @@ github.com/linuxsuren/go-cli-alias v0.0.6 h1:PGYf1xqy5GzGINeRhiZR1PTlp09cbyC66MG
github.com/linuxsuren/go-cli-alias v0.0.6/go.mod h1:Sa7xNUI72BgHTcywDU8MXVSH1q72SLdMALZSSANwuUM=
github.com/linuxsuren/http-downloader v0.0.2-0.20201207132639-19888a6beaec/go.mod h1:zRZY9FCDBuYNDxbI2Ny5suasZsMk7J6q9ecQ3V3PIqI=
github.com/linuxsuren/http-downloader v0.0.6/go.mod h1:xxgh2OE7WGL9TwDE9L8Gh7Lqq9fFPuHbh5tofUitEfE=
github.com/linuxsuren/http-downloader v0.0.33 h1:ivAVsVS5zEr8F/oPCrdRdtFP+DLWQjGmVA9AVnUu/vo=
github.com/linuxsuren/http-downloader v0.0.33/go.mod h1:qgMo/GRgQlU6EnIQ+Ul6e0rEJiDFM6+Jcz63ZH2Dhw4=
github.com/linuxsuren/http-downloader v0.0.35 h1:hZ+ctSWdhSej5C5nbpHKYEFCh72q30qwfvAin+XYtz4=
github.com/linuxsuren/http-downloader v0.0.35/go.mod h1:FgFOdXaKLLYJDUiI39BpTteyhfeq3KRmlQNwct+uEPc=
github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ=
github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ=
github.com/magiconair/properties v1.8.5 h1:b6kJs+EmPFMYGkow9GiUyCyOvIwYetYJ3fSaWak/Gls=
Expand Down
8 changes: 7 additions & 1 deletion kubectl-plugin/entrypoint/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"github.com/kubesphere-sigs/ks/kubectl-plugin/user"
pkg "github.com/linuxsuren/cobra-extension"
extver "github.com/linuxsuren/cobra-extension/version"
hdcmd "github.com/linuxsuren/http-downloader/pkg/cmd"
"github.com/spf13/cobra"
"k8s.io/cli-runtime/pkg/genericclioptions"
"k8s.io/client-go/dynamic"
Expand Down Expand Up @@ -50,6 +51,11 @@ See also https://github.com/kubesphere/kubesphere`,
tool.NewToolCmd(),
install.NewInstallCmd(),
config.NewConfigRootCmd(client),
source2image.NewS2ICmd(client))
source2image.NewS2ICmd(client),
hdcmd.NewInitCommand(map[string]string{
"kubectl": "kubectl",
}, map[string]string{
"vim": "vim",
}))
return
}

0 comments on commit 8d97c87

Please sign in to comment.