influx-cli icon indicating copy to clipboard operation
influx-cli copied to clipboard

Use PAGER to view data

Open dufferzafar opened this issue 3 years ago • 0 comments

Currently when viewing data via a select query, influx just outputs the data onto screen in a simple table.

Other data query CLI tools like, psql, pgcli, mycli, support a PAGER variable to which the data is piped into. This keeps the REPL clean of the output data.

The most common of all PAGERs is less, so if $PAGER is set to less, all output data would be piped into it. Someone could then use less's builtin search / filter on that data. Or we could save that data into a file as well, all via less.

An advanced version would be to use visidata as a PAGER!

dufferzafar avatar May 04 '22 06:05 dufferzafar