Skip to content

Commit

Permalink
Get rid of deprecated cobra functions
Browse files Browse the repository at this point in the history
  • Loading branch information
piyush-garg authored and tekton-robot committed Oct 13, 2022
1 parent a585872 commit f5b3e03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/cmd/completion/completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func Command() *cobra.Command {
Annotations: map[string]string{
"commandType": "utility",
},
Args: cobra.ExactValidArgs(1),
Args: cobra.MatchAll(cobra.ExactArgs(1), cobra.OnlyValidArgs),
RunE: func(cmd *cobra.Command, args []string) error {
switch args[0] {
case "bash":
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/eventlistener/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Show 2 lines of most recent logs from all EventListener pods:
Annotations: map[string]string{
"commandType": "main",
},
Args: cobra.ExactValidArgs(1),
Args: cobra.MatchAll(cobra.ExactArgs(1), cobra.OnlyValidArgs),
ValidArgsFunction: formatted.ParentCompletion,
RunE: func(cmd *cobra.Command, args []string) error {
if opts.Tail <= 0 && opts.Tail != -1 {
Expand Down

0 comments on commit f5b3e03

Please sign in to comment.