Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flag validation called on up and down #347

Merged
merged 1 commit into from
Dec 27, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion cmd/convert.go
Expand Up @@ -17,11 +17,12 @@ limitations under the License.
package cmd

import (
"strings"

"github.com/kubernetes-incubator/kompose/pkg/app"
"github.com/kubernetes-incubator/kompose/pkg/kobject"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"strings"
)

var (
Expand Down
3 changes: 0 additions & 3 deletions cmd/down.go
Expand Up @@ -43,9 +43,6 @@ var downCmd = &cobra.Command{
Provider: strings.ToLower(GlobalProvider),
EmptyVols: DownEmptyVols,
}

// Validate before doing anything else. Use "bundle" if passed in.
app.ValidateFlags(GlobalBundle, args, cmd, &DownOpt)
},
Run: func(cmd *cobra.Command, args []string) {
app.Down(DownOpt)
Expand Down
3 changes: 0 additions & 3 deletions cmd/up.go
Expand Up @@ -43,9 +43,6 @@ var upCmd = &cobra.Command{
Provider: strings.ToLower(GlobalProvider),
EmptyVols: UpEmptyVols,
}

// Validate before doing anything else. Use "bundle" if passed in.
app.ValidateFlags(GlobalBundle, args, cmd, &UpOpt)
},
Run: func(cmd *cobra.Command, args []string) {
app.Up(UpOpt)
Expand Down
1 change: 1 addition & 0 deletions cmd/version.go
Expand Up @@ -18,6 +18,7 @@ package cmd

import (
"fmt"

"github.com/spf13/cobra"
)

Expand Down