Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
sontrinh16 committed Apr 15, 2024
1 parent 953fcc2 commit 6314b43
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/v2/autocli/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ func (b *Builder) buildMethodCommandCommon(descriptor protoreflect.MethodDescrip
return nil, err
}
cmd.Args = cobraArgs
binder, err := b.AddMessageFlags(cmd.Context(), cmd.Flags(), inputType, options)
if err != nil {
return nil, err
}

cmd.RunE = func(cmd *cobra.Command, args []string) error {
binder, err := b.AddMessageFlags(cmd.Context(), cmd.Flags(), inputType, options)
if err != nil {
return err
}

input, err := binder.BuildMessage(args)
if err != nil {
Expand Down

0 comments on commit 6314b43

Please sign in to comment.