Skip to content

Commit

Permalink
fix: DisableDefaultCmd
Browse files Browse the repository at this point in the history
  • Loading branch information
2637309949 committed Aug 6, 2021
1 parent 8af60ac commit 4a23bd4
Show file tree
Hide file tree
Showing 4 changed files with 313 additions and 115 deletions.
1 change: 1 addition & 0 deletions cmd/dolphin/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ var (
PersistentPreRun: func(cmd *cobra.Command, args []string) {
InitViper(cmd, args)
},
CompletionOptions: cobra.CompletionOptions{DisableDefaultCmd: true},
}
build = &cobra.Command{
Use: "build",
Expand Down
24 changes: 9 additions & 15 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -26,48 +26,42 @@ require (
github.com/go-session/session v3.1.2+incompatible
github.com/go-sql-driver/mysql v1.6.0
github.com/golang-jwt/jwt v3.2.1+incompatible
github.com/golang/protobuf v1.4.2
github.com/golang/protobuf v1.5.2
github.com/golang/snappy v0.0.3 // indirect
github.com/google/uuid v1.2.0
github.com/gorilla/securecookie v1.1.1
github.com/jehiah/go-strftime v0.0.0-20171201141054-1d33003b3869 // indirect
github.com/json-iterator/go v1.1.9
github.com/jonboulle/clockwork v0.1.0 // indirect
github.com/json-iterator/go v1.1.11
github.com/leodido/go-urn v1.2.1 // indirect
github.com/lestrrat-go/file-rotatelogs v2.4.0+incompatible
github.com/lestrrat-go/strftime v1.0.1 // indirect
github.com/lib/pq v1.10.2
github.com/magiconair/properties v1.8.5 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-sqlite3 v1.14.7
github.com/mitchellh/mapstructure v1.4.1 // indirect
github.com/pelletier/go-toml v1.9.1 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/pkg/errors v0.9.1
github.com/robfig/cron/v3 v3.0.1
github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749
github.com/shurcooL/vfsgen v0.0.0-20200824052919-0d455de96546
github.com/sirupsen/logrus v1.8.1
github.com/spf13/afero v1.6.0 // indirect
github.com/spf13/cast v1.3.1 // indirect
github.com/spf13/cobra v1.1.3
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/viper v1.7.1
github.com/spf13/cobra v1.2.1
github.com/spf13/viper v1.8.1
github.com/syndtr/goleveldb v1.0.0
github.com/tealeg/xlsx v1.0.5 // indirect
github.com/tebeka/strftime v0.1.3 // indirect
github.com/thoas/go-funk v0.8.0
github.com/tidwall/buntdb v1.1.2
go.uber.org/multierr v1.4.0
go.uber.org/multierr v1.6.0
golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a
golang.org/x/net v0.0.0-20210525063256-abc453219eb5
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45
golang.org/x/oauth2 v0.0.0-20210402161424-2e8d93401602
golang.org/x/sys v0.0.0-20210525143221-35b2ab0089ea
golang.org/x/term v0.0.0-20210503060354-a79de5458b56
golang.org/x/tools v0.1.3
google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb // indirect
google.golang.org/grpc v1.26.0
google.golang.org/grpc v1.38.0
gopkg.in/flosch/pongo2.v3 v3.0.0-20141028000813-5e81b817a0c4
gopkg.in/go-playground/assert.v1 v1.2.1 // indirect
gopkg.in/go-playground/validator.v9 v9.31.0
gopkg.in/ini.v1 v1.62.0 // indirect
gopkg.in/yaml.v2 v2.4.0
)
Loading

0 comments on commit 4a23bd4

Please sign in to comment.