fix issue #1: output in a single file

This commit is contained in:
ngtuna
2016-07-04 14:39:08 +07:00
parent fd82f2cba4
commit bea0e4b7c3
3 changed files with 38 additions and 16 deletions
+6 -1
View File
@@ -35,6 +35,11 @@ func ConvertCommand(factory app.ProjectFactory) cli.Command {
Value: "docker-compose.yml",
EnvVar: "COMPOSE_FILE",
},
cli.StringFlag{
Name: "out,o",
Usage: "Specify file name in order to save objects into",
EnvVar: "OUTPUT_FILE",
},
// TODO: validate the flags and make sure only one type is specified
cli.BoolFlag{
Name: "deployment,d",
@@ -57,7 +62,7 @@ func ConvertCommand(factory app.ProjectFactory) cli.Command {
Usage: "Generate resource file in yaml format",
},
cli.BoolFlag{
Name: "stdout,out",
Name: "stdout",
Usage: "Print Kubernetes objects to stdout",
},
},