How garabik/grc works
GRC is a command-line output colouriser. Its principal workflow is: a user invokes grc, which selects a colourisation configuration for a command, runs that command, and pipes its standard output through grcat to produce coloured output. grcat can also be used directly as a stdin-to-stdout filter. The README documents rule matching, replacement, skipping, commands, concatenation, and multiline blocks; the tree includes many command-specific rule files. Source excerpts are limited to one configuration, so internal call details beyond documented behavior are not asserted.
Main entry points: grc GRC frontend · grcat GRC filter · grc.conf Command mappings · colourfiles Built-in presets
Components 8
Command frontend
- GRC frontend
grc - Command mappings
grc.conf
Colourisation engine
- GRC filter
grcat - Rule configuration
Colour rules
- Built-in presets
colourfiles
Other components
- User
- Target command
- Coloured output
Connections 10
- User → GRC frontend: invokes
README.markdown - GRC frontend → Command mappings: selects from
README.markdown - GRC frontend → Target command: runs
README.markdown - GRC frontend → GRC filter: pipes output to
README.markdown - GRC frontend → Rule configuration: chooses
README.markdown - User → GRC filter: runs directly
README.markdown - Target command → GRC filter: streams stdout
README.markdown - GRC filter → Rule configuration: loads
README.markdown - Rule configuration → Built-in presets: may use
- GRC filter → Coloured output: writes coloured text
README.markdown