Actual drone-invokable helm commands
This commit is contained in:
@@ -7,6 +7,8 @@ import (
|
||||
"syscall"
|
||||
)
|
||||
|
||||
const HELM_BIN = "/usr/bin/helm"
|
||||
|
||||
// The cmd interface provides a generic form of exec.Cmd so that it can be mocked out in tests.
|
||||
type cmd interface {
|
||||
// methods that exist on exec.Cmd
|
||||
@@ -41,8 +43,10 @@ type execCmd struct {
|
||||
*exec.Cmd
|
||||
}
|
||||
|
||||
var Command = func() cmd {
|
||||
return &execCmd{}
|
||||
var Command = func(path string, args ...string) cmd {
|
||||
return &execCmd{
|
||||
Cmd: exec.Command(path, args...),
|
||||
}
|
||||
}
|
||||
|
||||
func (c *execCmd) Path(p string) { c.Cmd.Path = p }
|
||||
|
||||
Reference in New Issue
Block a user