Skip to content

Commit

Permalink
Fixed deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
vvondruska committed Oct 13, 2022
1 parent abd0b31 commit 1ddcbb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/update/app/command.go
Expand Up @@ -77,7 +77,7 @@ func New(config Config) (*cobra.Command, error) {
Short: shortDescription,
Long: longDescription,
Example: examples,
Args: cobra.ExactValidArgs(0),
Args: cobra.MatchAll(cobra.ExactArgs(0), cobra.OnlyValidArgs),
RunE: r.Run,
PreRunE: middleware.Compose(
renewtoken.Middleware(*config.ConfigFlags),
Expand Down
2 changes: 1 addition & 1 deletion cmd/update/cluster/command.go
Expand Up @@ -82,7 +82,7 @@ func New(config Config) (*cobra.Command, error) {
Short: shortDescription,
Long: longDescription,
Example: examples,
Args: cobra.ExactValidArgs(0),
Args: cobra.MatchAll(cobra.ExactArgs(0), cobra.OnlyValidArgs),
RunE: r.Run,
PreRunE: middleware.Compose(
renewtoken.Middleware(*config.ConfigFlags),
Expand Down

0 comments on commit 1ddcbb6

Please sign in to comment.