Create a peer watch command that runs a subcommand in a loop and displays the latest output. At a minimum we need to be able to watch the show command, but the idea is to be able to watch other commands (maybe any command) without much extra effort going forward.
It might be wise to have the command take the form peer watch <watch-args> <subcmd> <subcmd-args> if possible.
peer watch show <show-args> provides the same behaviour that peer show -w <show-args> does
peer show -w <show-args> is deprecated in favour of peer watch show <show-args>
Create a
peer watchcommand that runs a subcommand in a loop and displays the latest output. At a minimum we need to be able to watch the show command, but the idea is to be able to watch other commands (maybe any command) without much extra effort going forward.It might be wise to have the command take the form
peer watch <watch-args> <subcmd> <subcmd-args>if possible.peer watch show <show-args>provides the same behaviour thatpeer show -w <show-args>doespeer show -w <show-args>is deprecated in favour ofpeer watch show <show-args>