Merge pull request #85 from fsilberstein/sync-args-without-update

Sync command: change the way we apply args
This commit is contained in:
KUOKA Yusuke 2018-04-04 16:41:35 +09:00 committed by GitHub
commit b75c1d8436
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

10
main.go
View File

@ -193,11 +193,6 @@ func main() {
os.Exit(1) os.Exit(1)
} }
args := c.String("args")
if len(args) > 0 {
helm.SetExtraArgs(strings.Split(args, " ")...)
}
if errs := state.UpdateDeps(helm); errs != nil && len(errs) > 0 { if errs := state.UpdateDeps(helm); errs != nil && len(errs) > 0 {
for _, err := range errs { for _, err := range errs {
fmt.Printf("err: %s\n", err.Error()) fmt.Printf("err: %s\n", err.Error())
@ -205,6 +200,11 @@ func main() {
os.Exit(1) os.Exit(1)
} }
args := c.String("args")
if len(args) > 0 {
helm.SetExtraArgs(strings.Split(args, " ")...)
}
values := c.StringSlice("values") values := c.StringSlice("values")
workers := c.Int("concurrency") workers := c.Int("concurrency")