forked from LaconicNetwork/kompose
close #13
This commit is contained in:
parent
2344ae7b5b
commit
22898a97c0
@ -4,7 +4,6 @@ language: go
|
||||
|
||||
go:
|
||||
- 1.6
|
||||
- tip
|
||||
|
||||
branches:
|
||||
only:
|
||||
|
||||
@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user