proxy.golang.org : github.com/arsham/blush
Package blush searches for matches with colours. Usage Any occurrence of "first search" will be in blue, "second one" and "and another one" are in green. With this method all texts are shown, but the matching words are coloured. You can activate this mode by providing "--colour" or "-C" argument. Blush can also read from a pipe: Arguments File names or paths are matched from the end. Any argument that doesn't match any files or paths are considered as regular expression. If regular expressions are not followed by colouring arguments are coloured based on previously provided colour: If no colour is provided, blush will choose blue. If you only provide file/path, it will print them out without colouring. If the matcher contains only alphabets and numbers, a non-regular expression is applied to search. You can provide a number for a colour argument to create a colour group: All matches will be shown as blue. But `match1` and `match3` will have a different background colour than `match2`. This means the numbers will create colour groups. You also can provide a colour with a series of grep requests: You can choose a pre-defined colour, or pass it your own colour with a hash: You must put your complex grep into quotations:
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/arsham/blush
Keywords:
go
, golang
, grep
, terminal-app
License: MIT
Latest release: about 3 years ago
First release: about 7 years ago
Namespace: github.com/arsham
Stars: 546 on GitHub
Forks: 18 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 2 days ago