Commit Graph

14 Commits

Author SHA1 Message Date
40858a673a Use my regex engine instead of the stdlib one 2025-04-21 23:02:20 -04:00
9fce9cf2a1 Construct config path using user's home directory, instead of trying to guess what the home directory is 2025-01-27 09:22:25 -05:00
d15a771e89 Removed references to Windows support
The program doesn't seem to work on Windows, and I don't have the time
right now to debug it. So, at the moment, the program isn't supported on Windows.
2024-08-15 12:37:01 -05:00
b65cef96c3 Replaced the relative path on Windows with an absolute path 2024-08-15 12:27:48 -05:00
eb2a0a9122 If the color config file exists, load colors from it 2024-08-15 10:19:43 -05:00
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.
2024-08-13 00:55:55 -05:00
ffae02b62b Fixed bug where line number wasn't updated 2024-08-13 00:51:53 -05:00
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.
2024-08-13 00:49:02 -05:00
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 2024-08-13 00:21:26 -05:00
098f7fe01b Instead of using command-line flags, I decided to generate the configs if they don't exist 2024-08-13 00:07:46 -05:00
94d1d99af2 Added a flag called 'generate-config' which will generate default config files. 2024-08-12 11:27:07 -05:00
7feac0b5f7 Renamed 'printAndExit' to 'printErrAndExit' 2024-08-10 11:29:18 -05:00
2a007ba56c Replaced 'panic' with an error return, and a call to 'printAndExit' 2024-08-10 11:28:41 -05:00
025ec775ca First commit 2024-08-09 19:20:42 -05:00