Textualize / rich-cli

Rich-cli is a command line toolbox for fancy output in the terminal
https://www.textualize.io
MIT License
3.04k stars 75 forks source link

Add --head and --tail options to rich-cli #1

Closed willmcgugan closed 2 years ago

willmcgugan commented 2 years ago

We need a way of showing a fixed number of lines from either the head or the tail of a fail.

i.e. rich foo.py --head 10 would show the first ten lines.

Note that this needs to be done after the file has been highlighted. It's not enough to apply this to the file prior to highlighting.

willmcgugan commented 2 years ago

👍