chore: tidy up pkgs (#636)

for readability and towards potentially making helmfile usable as a go library
This commit is contained in:
KUOKA Yusuke
2019-06-01 13:36:05 +09:00
committed by GitHub
parent 68b95f14d4
commit c68fc5bc50
46 changed files with 62 additions and 60 deletions
+2 -2
View File
@@ -2,9 +2,9 @@ package cmd
import (
"fmt"
"github.com/roboll/helmfile/helmexec"
"github.com/roboll/helmfile/pkg/app"
"github.com/roboll/helmfile/state"
"github.com/roboll/helmfile/pkg/helmexec"
"github.com/roboll/helmfile/pkg/state"
"github.com/urfave/cli"
"go.uber.org/zap"
"strings"
+4 -4
View File
@@ -1,10 +1,10 @@
package cmd
import (
"github.com/roboll/helmfile/args"
"github.com/roboll/helmfile/helmexec"
"github.com/roboll/helmfile/pkg/app"
"github.com/roboll/helmfile/state"
"github.com/roboll/helmfile/pkg/argparser"
"github.com/roboll/helmfile/pkg/helmexec"
"github.com/roboll/helmfile/pkg/state"
"github.com/urfave/cli"
)
@@ -21,7 +21,7 @@ func Deps() cli.Command {
},
Action: func(c *cli.Context) error {
return VisitAllDesiredStates(c, func(state *state.HelmState, helm helmexec.Interface, ctx app.Context) (bool, []error) {
args := args.GetArgs(c.String("args"), state)
args := argparser.GetArgs(c.String("args"), state)
if len(args) > 0 {
helm.SetExtraArgs(args...)
}