From a574eaa868df6d0d9feea27ae478e4fa78249a8f Mon Sep 17 00:00:00 2001 From: Milos Pejanovic Date: Mon, 6 Jul 2020 15:08:11 +0200 Subject: [PATCH] apply small fix to cmd utils --- util/docker.go | 4 ++-- util/go.go | 4 ++-- util/helm.go | 4 ++-- util/kube.go | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/util/docker.go b/util/docker.go index 185e571..3330a80 100644 --- a/util/docker.go +++ b/util/docker.go @@ -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 { diff --git a/util/go.go b/util/go.go index 3e3f7a1..45d6e1c 100644 --- a/util/go.go +++ b/util/go.go @@ -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 { diff --git a/util/helm.go b/util/helm.go index 52f8e1a..38f2c3c 100644 --- a/util/helm.go +++ b/util/helm.go @@ -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) { diff --git a/util/kube.go b/util/kube.go index 509dd40..bb7c386 100644 --- a/util/kube.go +++ b/util/kube.go @@ -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 {