27 Commits (e7e7a247d87dac21610d2c523e74f36d55c6ea5a)
 

Author SHA1 Message Date
Aadhavan Srinivasan e7e7a247d8 Updated README 4 months ago
Aadhavan Srinivasan eb2a0a9122 If the color config file exists, load colors from it 4 months ago
Aadhavan Srinivasan 46e3e9da85 Added function to load colors from a config file 4 months ago
Aadhavan Srinivasan 5bb51fb90c Updated README 4 months ago
Aadhavan Srinivasan 5da734e06d Fixed typo 4 months ago
Aadhavan Srinivasan 925ef4df4b Updated README 4 months ago
Aadhavan Srinivasan 79cd6dab8d Cosmetic changes 4 months ago
Aadhavan Srinivasan 28ee686295 Fixed typo 4 months ago
Aadhavan Srinivasan 5e0bbbec4f Added README 4 months ago
Aadhavan Srinivasan 05f3ebc178 Updated TODO 4 months ago
Aadhavan Srinivasan a34f2309a8 Removed C file which was used for testing 4 months ago
Aadhavan Srinivasan 66b227fb63 Defined color mappings for Go 4 months ago
Aadhavan Srinivasan 373c3c3385 Added Dark Blue as a color 4 months ago
Aadhavan Srinivasan 624ea575cc Changed behavior of program when 'disable color' flag is passed.
Instead of printing out the contents early on (which wouldn't allow it to work
with '-n'), I skip the loop that applies colors based on the regular expressions.
4 months ago
Aadhavan Srinivasan ffae02b62b Fixed bug where line number wasn't updated 4 months ago
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
Aadhavan Srinivasan 0b67cb317e Added 'disable color' flag ('-d') to disable color printing. Also replaced os.Args with flag.Args, to retrieve command-line arguments after stripping out flags 4 months ago
Aadhavan Srinivasan 098f7fe01b Instead of using command-line flags, I decided to generate the configs if they don't exist 4 months ago
Aadhavan Srinivasan 76fc61a19d Wrote function to copy embedded config files to a config directory 4 months ago
Aadhavan Srinivasan 94d1d99af2 Added a flag called 'generate-config' which will generate default config files. 4 months ago
Aadhavan Srinivasan 7feac0b5f7 Renamed 'printAndExit' to 'printErrAndExit' 4 months ago
Aadhavan Srinivasan 2a007ba56c Replaced 'panic' with an error return, and a call to 'printAndExit' 4 months ago
Aadhavan Srinivasan 71051ce7f0 Wrote function to print an error and exit the program 4 months ago
Aadhavan Srinivasan 461824d725 Added gitignore file 4 months ago
Aadhavan Srinivasan c4f8028e8a Removed binary file 4 months ago
Aadhavan Srinivasan 3678dc5161 Added regex match for comparison operators 5 months ago
Aadhavan Srinivasan 025ec775ca First commit 5 months ago