Replicate most of drone-helm's config

This commit is contained in:
Erin Call
2019-12-09 09:56:02 -08:00
parent 238ede6f9e
commit e3051ec72e
12 changed files with 277 additions and 62 deletions

View File

@@ -4,12 +4,20 @@ import (
"os"
)
func Help(args ...string) error {
args = append([]string{"help"}, args...)
cmd := Command(HELM_BIN, args...)
cmd.Stdout(os.Stdout)
cmd.Stderr(os.Stderr)
return cmd.Run()
type Help struct {
cmd cmd
}
func (h *Help) Run() error {
return h.cmd.Run()
}
func NewHelp() *Help {
h := Help{}
h.cmd = Command(HELM_BIN, "help")
h.cmd.Stdout(os.Stdout)
h.cmd.Stderr(os.Stderr)
return &h
}