Skip to content

Commit

Permalink
chore: fix the output of watch -i
Browse files Browse the repository at this point in the history
  • Loading branch information
JalinWang authored Feb 12, 2025
1 parent fefce54 commit acdab4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions etcdctl/ctlv3/command/watch_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func watchInteractiveFunc(cmd *cobra.Command, osArgs []string, envKey, envRange

args := Argify(l)
if len(args) < 1 {
fmt.Fprintf(os.Stderr, "Invalid command: %s (watch and progress supported)\n", l)
fmt.Fprintf(os.Stderr, "Invalid command: %s (`watch` and `progress` supported)\n", l)

Check warning on line 108 in etcdctl/ctlv3/command/watch_command.go

View check run for this annotation

Codecov / codecov/patch

etcdctl/ctlv3/command/watch_command.go#L108

Added line #L108 was not covered by tests
continue
}
switch args[0] {
Expand All @@ -131,7 +131,7 @@ func watchInteractiveFunc(cmd *cobra.Command, osArgs []string, envKey, envRange
cobrautl.ExitWithError(cobrautl.ExitError, err)
}
default:
fmt.Fprintf(os.Stderr, "Invalid command %s (only support watch)\n", l)
fmt.Fprintf(os.Stderr, "Invalid command %s (only support `watch` & `progress`)\n", l)

Check warning on line 134 in etcdctl/ctlv3/command/watch_command.go

View check run for this annotation

Codecov / codecov/patch

etcdctl/ctlv3/command/watch_command.go#L134

Added line #L134 was not covered by tests
continue
}
}
Expand Down

0 comments on commit acdab4d

Please sign in to comment.