From d15183dfe6b3eba799036046d4285f092a0fa022 Mon Sep 17 00:00:00 2001 From: Tuna Date: Mon, 26 Sep 2016 23:25:13 +0200 Subject: [PATCH] support -o - to stdout fix #169 --- cli/app/app.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cli/app/app.go b/cli/app/app.go index d927ca51..020f8cdd 100644 --- a/cli/app/app.go +++ b/cli/app/app.go @@ -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