test
This commit is contained in:
22
src/helm/helm.go
Normal file
22
src/helm/helm.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package helm
|
||||
|
||||
import (
|
||||
"os/exec"
|
||||
)
|
||||
|
||||
type HelmCommand struct {
|
||||
Bin string
|
||||
Exec func(string,...string) commandExecutor
|
||||
}
|
||||
|
||||
////
|
||||
type commandExecutor interface {
|
||||
Output() ([]byte, error)
|
||||
CombinedOutput() ([]byte, error)
|
||||
}
|
||||
|
||||
func (this *HelmCommand) New() {
|
||||
this.Exec = func(name string, arg ...string) commandExecutor {
|
||||
return exec.Command(name, arg...)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user