From 22898a97c0faccd4945b7e9dcf4c5fe3b584987f Mon Sep 17 00:00:00 2001 From: ngtuna Date: Wed, 6 Jul 2016 23:37:54 +0700 Subject: [PATCH] close #13 --- .travis.yml | 1 - cli/app/app.go | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index aa012100..73c32220 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,6 @@ language: go go: - 1.6 - - tip branches: only: diff --git a/cli/app/app.go b/cli/app/app.go index 91caeb0f..1bc07458 100644 --- a/cli/app/app.go +++ b/cli/app/app.go @@ -248,6 +248,7 @@ func ProjectKuberScale(p *project.Project, c *cli.Context) { func ProjectKuberConvert(p *project.Project, c *cli.Context) { generateYaml := false toStdout := false + composeFile := c.String("file") var outFile string @@ -266,6 +267,7 @@ func ProjectKuberConvert(p *project.Project, c *cli.Context) { logrus.Fatalf("Failed to parse the compose project from %s: %v", composeFile, err) } + // check flags if c.BoolT("yaml") { generateYaml = true } @@ -753,7 +755,7 @@ func print(name, trailing string, data []byte, toStdout, generateYaml bool, outF if _, err = f.WriteString(string(data) + "\n" + separator); err != nil { logrus.Fatalf("Failed to write %s to file: %v", trailing, err) } - + fmt.Println("file " + file + " has been created") } }