apply small fix to cmd utils

This commit is contained in:
Milos Pejanovic
2020-07-06 15:08:11 +02:00
parent 0385da527e
commit a574eaa868
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -7,11 +7,11 @@ import (
)
type DockerCmd struct {
*Cmd
Cmd
}
func NewDockerCommand(l *logrus.Entry) *DockerCmd {
return &DockerCmd{NewCommand(l, "helm")}
return &DockerCmd{*NewCommand(l, "helm")}
}
func (c DockerCmd) Build(workDir string, options ...string) *Cmd {
+2 -2
View File
@@ -5,11 +5,11 @@ import (
)
type GoCmd struct {
*Cmd
Cmd
}
func NewGoCommand(l *logrus.Entry) *GoCmd {
return &GoCmd{NewCommand(l, "go")}
return &GoCmd{*NewCommand(l, "go")}
}
func (c GoCmd) Build(workDir, output, input string, flags ...string) *Cmd {
+2 -2
View File
@@ -3,11 +3,11 @@ package util
import "github.com/sirupsen/logrus"
type HelmCmd struct {
*Cmd
Cmd
}
func NewHelmCommand(l *logrus.Entry) *HelmCmd {
return &HelmCmd{NewCommand(l, "helm")}
return &HelmCmd{*NewCommand(l, "helm")}
}
func (c HelmCmd) UpdateDependency(chart, chartPath string) (string, error) {
+2 -2
View File
@@ -11,11 +11,11 @@ import (
)
type KubeCmd struct {
*Cmd
Cmd
}
func NewKubeCommand(l *logrus.Entry) *KubeCmd {
return &KubeCmd{NewCommand(l, "helm")}
return &KubeCmd{*NewCommand(l, "kubectl")}
}
func (c KubeCmd) RollbackDeployment(deployment string) *Cmd {