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.
10 months ago
config Added regex match for comparison operators 10 months ago
stack First commit 10 months ago
.gitignore Added gitignore file 10 months ago
Makefile First commit 10 months ago
color.go Renamed 'printAndExit' to 'printErrAndExit' 10 months ago
colorunit.go Replaced 'panic' with an error return, and a call to 'printAndExit' 10 months ago
config.go Wrote function to copy embedded config files to a config directory 10 months ago
errors.go Renamed 'printAndExit' to 'printErrAndExit' 10 months ago
go.mod First commit 10 months ago
go.sum First commit 10 months ago
main.go Added 'line number' flag, and added check for empty file. 10 months ago
regcolor.go First commit 10 months ago
test.c First commit 10 months ago
todo.txt First commit 10 months ago
vision.txt First commit 10 months ago