forked from LaconicNetwork/kompose
make --file as global flag
This commit is contained in:
+3
-3
@@ -88,7 +88,7 @@ func validateFlags(opt kobject.ConvertOptions, singleOutput bool, dabFile, input
|
||||
|
||||
// Convert transforms docker compose or dab file to k8s objects
|
||||
func Convert(c *cli.Context) {
|
||||
inputFile := c.String("file")
|
||||
inputFile := c.GlobalString("file")
|
||||
dabFile := c.String("bundle")
|
||||
outFile := c.String("out")
|
||||
generateYaml := c.BoolT("yaml")
|
||||
@@ -170,7 +170,7 @@ func Up(c *cli.Context) {
|
||||
}
|
||||
client := client.NewOrDie(clientConfig)
|
||||
|
||||
inputFile := c.String("file")
|
||||
inputFile := c.GlobalString("file")
|
||||
dabFile := c.String("bundle")
|
||||
|
||||
komposeObject := kobject.KomposeObject{
|
||||
@@ -220,7 +220,7 @@ func Down(c *cli.Context) {
|
||||
}
|
||||
client := client.NewOrDie(clientConfig)
|
||||
|
||||
inputFile := c.String("file")
|
||||
inputFile := c.GlobalString("file")
|
||||
dabFile := c.String("bundle")
|
||||
|
||||
komposeObject := kobject.KomposeObject{
|
||||
|
||||
Reference in New Issue
Block a user