feat: add --no-tail option to pvr device logs
Summary
- Adds
--no-tailflag topvr device logscommand - When set, the log stream exits after consuming all available logs up to
--toor NOW, instead of tailing indefinitely - Sets the server-side
beforefilter so Elasticsearch constrains results to the time range, and exits cleanly when the scroll cursor is exhausted
Test plan
-
pvr device logs 69bf4ccec0329e0009885cb9 --rev=4 --no-tail— streams logs and exits -
pvr device logs <device> --no-tail --to=<time>— stops at specified time -
pvr device logs <device>— default behavior unchanged (still tails)