mirror of
https://github.com/foomo/squadron.git
synced 2026-10-06 23:56:54 +00:00
apply small fix to cmd utils
This commit is contained in:
+2
-2
@@ -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
@@ -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
@@ -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
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user