added support for docker-compose.yaml besides docker-compose.yml

This commit is contained in:
Abhishek
2017-01-23 13:30:33 +05:30
parent 99c1a79fbd
commit 96a0572f50
12 changed files with 810 additions and 4 deletions
+1
View File
@@ -74,6 +74,7 @@ var convertCmd = &cobra.Command{
// Validate before doing anything else. Use "bundle" if passed in.
app.ValidateFlags(GlobalBundle, args, cmd, &ConvertOpt)
app.ValidateComposeFile(cmd, &ConvertOpt)
},
Run: func(cmd *cobra.Command, args []string) {
+3
View File
@@ -44,6 +44,9 @@ var downCmd = &cobra.Command{
Provider: strings.ToLower(GlobalProvider),
EmptyVols: DownEmptyVols,
}
// Validate before doing anything else.
app.ValidateComposeFile(cmd, &DownOpt)
},
Run: func(cmd *cobra.Command, args []string) {
app.Down(DownOpt)
+3
View File
@@ -44,6 +44,9 @@ var upCmd = &cobra.Command{
Provider: strings.ToLower(GlobalProvider),
EmptyVols: UpEmptyVols,
}
// Validate before doing anything else.
app.ValidateComposeFile(cmd, &UpOpt)
},
Run: func(cmd *cobra.Command, args []string) {
app.Up(UpOpt)