mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdctlv3: use --interactive for interactive mode in watch
This commit is contained in:
parent
87dcb2adea
commit
b280291f9e
@ -183,7 +183,7 @@ Watch watches events stream on keys or prefixes. The watch command runs until it
|
|||||||
|
|
||||||
- hex -- print out key and value as hex encode string
|
- hex -- print out key and value as hex encode string
|
||||||
|
|
||||||
- i -- begins an interactive watch session
|
- interactive -- begins an interactive watch session
|
||||||
|
|
||||||
- prefix -- watch on a prefix if prefix is set.
|
- prefix -- watch on a prefix if prefix is set.
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ func NewWatchCommand() *cobra.Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cmd.Flags().BoolVar(&watchHex, "hex", false, "print out key and value as hex encode string for text format")
|
cmd.Flags().BoolVar(&watchHex, "hex", false, "print out key and value as hex encode string for text format")
|
||||||
cmd.Flags().BoolVar(&watchInteractive, "i", false, "interactive mode")
|
cmd.Flags().BoolVarP(&watchInteractive, "interactive", "i", false, "interactive mode")
|
||||||
cmd.Flags().BoolVar(&watchPrefix, "prefix", false, "watch on a prefix if prefix is set")
|
cmd.Flags().BoolVar(&watchPrefix, "prefix", false, "watch on a prefix if prefix is set")
|
||||||
cmd.Flags().Int64Var(&watchRev, "rev", 0, "revision to start watching")
|
cmd.Flags().Int64Var(&watchRev, "rev", 0, "revision to start watching")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user