Commit Graph

120 Commits

Author SHA1 Message Date
3bcc958dda Remove the error return value and instead just throw error 2025-11-15 18:10:24 +01:00
11f0bbee53 "Rework" the csv parsing to cook metatable for header access instead of whatever the fuck I was doing 2025-11-15 18:06:21 +01:00
c145ad0900 Add headers to rowS (SSSSSSSSSSSSSSSS) and not individual row 2025-11-15 16:56:46 +01:00
e02c1f018f fixup! Add lua csv parser regression test(s) 2025-11-15 16:54:22 +01:00
07fea6238f Add lua csv parser regression test(s) 2025-11-15 16:53:06 +01:00
5f1fdfa6c1 Fix some go linter warnings 2025-11-15 16:53:06 +01:00
4fb25d0463 Add a complex test for csv parser 2025-11-15 16:37:38 +01:00
bf23894188 Check options passed to csv parser 2025-11-15 16:30:53 +01:00
83fed68432 Fix csv header key assignment 2025-11-15 16:01:31 +01:00
4311533445 Lowercase the csv options 2025-11-15 15:57:21 +01:00
ce28b948d0 Add an options parameter to csv parser and comment support 2025-11-15 15:51:49 +01:00
efc602e0ba Add a few more lua tests 2025-11-15 15:43:50 +01:00
917063db0c Refactor lua helper script to separate file
And write a few tests for it
2025-11-15 15:42:57 +01:00
3e552428a5 Improve the csv parser by reading header and assigning values to their header
So we have things like row[1] AND ALSO row["foobar"]
And also row.foobar of course
2025-11-15 15:39:49 +01:00
50455c491d Add support for any SV like TSV 2025-11-15 15:25:18 +01:00
5a49998c2c Add a toCSV to go along with the fromCSV 2025-11-03 19:28:00 +01:00
590f19603e Make regex matching set INTEGER keys not string 2025-11-03 19:07:15 +01:00
ee8c4b9aa5 Ah oops, can't be local oopsie!! 2025-11-03 16:35:53 +01:00
e8d6613ac8 Add ParseCSV as lua function 2025-11-03 16:33:44 +01:00
b74e4724d4 Convert \n to \r?\n because of windows thank you windows :) 2025-10-26 17:04:39 +01:00
30246fd626 Fix logging the regex
It was adding backslashes and shit
2025-10-26 17:04:39 +01:00
346afdd143 Fix some shit 2025-10-23 00:19:07 +02:00
635ca463c0 Hallucinate fixes to some tests 2025-10-21 10:38:39 +02:00
ec24e0713d Simplify EvalRegex function by removing unnecessary panic handling and nil checks 2025-10-21 09:57:02 +02:00
969ccae25c Use diffs for tests 2025-08-22 10:10:37 +02:00
5b46ff0efd Fix broken test introduced in previous commit 2025-08-22 10:04:11 +02:00
d234616406 Add broken test 2025-08-22 09:53:00 +02:00
af3e55e518 Fix some retarded bullshit 2025-08-22 00:10:46 +02:00
13b48229ac Fix some bullshit (the re) 2025-08-22 00:05:22 +02:00
670f6ed7a0 Add tests for EvalRegex 2025-08-21 23:56:05 +02:00
bbc7c50fae Decringe 2025-08-21 23:17:36 +02:00
779d1e0a0e Fix some more shit I guess 2025-08-21 23:16:23 +02:00
54581f0216 Clean up the cringe 2025-08-21 23:10:18 +02:00
3d01822e77 Fix failing test 2025-08-21 23:05:57 +02:00
4e0ca92c77 Add failing test 2025-08-21 23:05:57 +02:00
388e54b3e3 Add comprehensive help string for available Lua functions 2025-08-21 22:32:10 +02:00
6f2e76221a Add real regex support to lua 2025-08-21 22:27:37 +02:00
e0d3b938e3 Fix tests 2025-08-21 22:26:20 +02:00
491a030bf8 Hallucinate actual json fucking thing 2025-08-21 22:19:21 +02:00
bff7cc2a27 Hallucinate a json mode implementation 2025-08-21 20:39:35 +02:00
6eb4f31127 Implement regexes, an entry option allow for same modification to apply to multiple regexes and variables that can be referenced in lua 2025-08-08 09:50:31 +02:00
4b58e00c26 Hallucinate some logs
Hallucinate more logs

fix(utils/db.go): handle auto migration errors gracefully

fix(utils/modifycommand.go): improve file matching accuracy

fix(processor/regex.go): improve capture group deduplication logic

fix(utils/db.go): add logging for database wrapper initialization

feat(processor/regex.go): preserve input order when deduplicating capture groups

fix(utils/modifycommand.go): add logging for file matching skips

feat(processor/regex.go): add logging for capture group processing

feat(main.go): add trace logging for arguments and parallel workers

fix(main.go): add trace logging for file content

fix(utils/db.go): add logging for database opening

fix(main.go): add trace logging for file processing

fix(utils/modifycommand.go): improve file matching by using absolute paths

feat(modifycommand.go): add trace logging for file matching in AssociateFilesWithCommands

feat(main.go): add per-file association summary for better visibility when debugging
2025-08-08 08:10:51 +02:00
052c670627 Add a simple trim to lua 2025-07-21 21:00:11 +02:00
75bf449bed Remove logger and replace it with a library 2025-04-18 12:47:47 +02:00
c5d1dad8de Rename project to "cook" and ditch loading fgrom args, now files exclusively 2025-04-09 09:47:53 +02:00
14d64495b6 Add deduplicate flag 2025-03-29 17:29:21 +01:00
fe6e97e832 Don't deduplicate (yet) 2025-03-29 17:23:21 +01:00
2e3e958e15 Fix some tests and add some logs 2025-03-28 23:31:44 +01:00
b77224176b Add file lua value 2025-03-28 16:47:21 +01:00
e8f16dda2b Housekeeping 2025-03-28 02:14:27 +01:00