color cat - cat(1) with regex-based syntax highlighting.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Go to file
Aadhavan Srinivasan 81b976bcc7 Added 'line number' flag, and added check for empty file.
I added a 'line number' flag ('-n') which will print the line number
with padding before every line. To ensure that a line number isn't printed when
trying to 'ccat' an empty file, I added a check to see if the file is empty.
If it is, the program exits.
4 months ago
config Added regex match for comparison operators 5 months ago
stack First commit 5 months ago
.gitignore Added gitignore file 4 months ago
Makefile First commit 5 months ago
color.go Renamed 'printAndExit' to 'printErrAndExit' 4 months ago
colorunit.go Replaced 'panic' with an error return, and a call to 'printAndExit' 4 months ago
config.go Wrote function to copy embedded config files to a config directory 4 months ago
errors.go Renamed 'printAndExit' to 'printErrAndExit' 4 months ago
go.mod First commit 5 months ago
go.sum First commit 5 months ago
main.go Added 'line number' flag, and added check for empty file. 4 months ago
regcolor.go First commit 5 months ago
test.c First commit 5 months ago
todo.txt First commit 5 months ago
vision.txt First commit 5 months ago