> This implements a way to add a limit for bgpctl show rib output. > When a limit is set then the output will include a token (at the end) > that can be used to get the next batch of output. These two things allow > to build a frontend that puts the output onto multiple pages. > Both regular output and JSON output include the token. >
I am not comfortable with this. It seems out of the scope of bgpctl. I would prefer to keep it simple / follow the unix way, aka pipe the output to another tool to paginate the output. In your example you use a temp file, why not work on this file to manage the limit / page display ?