12 Commits (81b976bcc73ac5e02ba370f556735780d4e357c3)
 

Author SHA1 Message Date
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.
2 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 2 months ago
Aadhavan Srinivasan 098f7fe01b Instead of using command-line flags, I decided to generate the configs if they don't exist 2 months ago
Aadhavan Srinivasan 76fc61a19d Wrote function to copy embedded config files to a config directory 2 months ago
Aadhavan Srinivasan 94d1d99af2 Added a flag called 'generate-config' which will generate default config files. 2 months ago
Aadhavan Srinivasan 7feac0b5f7 Renamed 'printAndExit' to 'printErrAndExit' 2 months ago
Aadhavan Srinivasan 2a007ba56c Replaced 'panic' with an error return, and a call to 'printAndExit' 2 months ago
Aadhavan Srinivasan 71051ce7f0 Wrote function to print an error and exit the program 2 months ago
Aadhavan Srinivasan 461824d725 Added gitignore file 2 months ago
Aadhavan Srinivasan c4f8028e8a Removed binary file 2 months ago
Aadhavan Srinivasan 3678dc5161 Added regex match for comparison operators 2 months ago
Aadhavan Srinivasan 025ec775ca First commit 2 months ago