Skip to content

Commit

Permalink
[cmd] Ignore flags (#39)
Browse files Browse the repository at this point in the history
* [cmd] Ignore flags

* Remove root level ignore
  • Loading branch information
JPZ13 committed Aug 26, 2019
1 parent e38acb4 commit 8438dd4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ var deactivateCmd = &cobra.Command{
var runCmd = &cobra.Command{
Use: "run",
Short: "Run an alias that is defined in the dpm yaml file",
FParseErrWhitelist: cobra.FParseErrWhitelist{
UnknownFlags: true,
},
Run: func(cmd *cobra.Command, args []string) {
run.Command(args)
},
Expand Down
2 changes: 1 addition & 1 deletion dpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ commands:
- glide
volume_name: glide
go:
image: golang:1.7.5
image: golang:1.12.9
entrypoints:
- go
volume_name: go
Expand Down
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ require (
github.com/pkg/errors v0.8.1 // indirect
github.com/sirupsen/logrus v1.4.2 // indirect
github.com/spf13/cobra v0.0.5
github.com/spf13/pflag v1.0.3
github.com/stretchr/testify v1.4.0
google.golang.org/grpc v1.23.0 // indirect
gopkg.in/yaml.v2 v2.2.2
Expand Down

0 comments on commit 8438dd4

Please sign in to comment.