support -o - to stdout

fix #169
This commit is contained in:
Tuna 2016-09-26 23:25:13 +02:00
parent fbe7ac620a
commit d15183dfe6

View File

@ -117,9 +117,14 @@ func Convert(c *cli.Context) {
createRC := c.BoolT("replicationcontroller")
createChart := c.BoolT("chart")
replicas := c.Int("replicas")
singleOutput := len(outFile) != 0 || toStdout
singleOutput := len(outFile) != 0 || outFile == "-" || toStdout
createDeploymentConfig := c.BoolT("deploymentconfig")
if outFile == "-" {
toStdout = true
outFile = ""
}
// Create Deployment by default if no controller has be set
if !createD && !createDS && !createRC && !createDeploymentConfig {
createD = true