feat: add jsonl_rename_key utility function and remove tablewriter dependency

- Add jsonl_rename_key() function to rename keys in JSONL files with mapping syntax 'old1:new1,old2:new2'
- Implements fast JSON parsing with fastjson and efficient buffered I/O for large files
- Include comprehensive test coverage with 7 test cases for edge cases and valid mappings
- Remove unused tablewriter dependency from go.mod/go.sum and internal/terminal/table.go
- Refactor printResultSummary() to use markdown table printing instead of tablewriter
- Add test data file ffuf-result.jsonl for integration testing
- Fix function list width default calculation in function.go
This commit is contained in:
j3ssie
2026-02-17 01:43:04 +07:00
parent bd1434739e
commit d01bd326df
10 changed files with 363 additions and 115 deletions
+4 -4
View File
@@ -435,11 +435,11 @@ func runFunctionList(cmd *cobra.Command, args []string) error {
}
headers := []string{"Category", "Function", "Description", "Returns"}
if globalWidth > 0 {
printMarkdownTableWithWidth(headers, rows, globalWidth)
} else {
printMarkdownTable(headers, rows)
width := globalWidth
if width <= 0 {
width = 65
}
printMarkdownTableWithWidth(headers, rows, width)
return nil
}