43 Commits

Author SHA1 Message Date
Ian Gulliver 2b74a38641 Rename module and URLs from gopatchy to bkl.sh 2026-03-04 21:00:53 -08:00
Ian Gulliver d141f37ffb Support multiple selectors and sort paths 2025-07-13 14:15:06 -07:00
Ian Gulliver 0692c5f11a Update diff and intersect to support multiple documents with selector matching 2025-07-01 15:41:17 -07:00
Ian Gulliver d2cf3a6391 Extract version handling to pkg/version and add -v/--version flags to all utilities 2025-06-30 08:02:17 -07:00
Ian Gulliver b0dc1d0f88 Make Diff, Intersect, and Required return []byte like Evaluate for consistency 2025-06-27 15:25:24 -07:00
Ian Gulliver 43a8eb6791 Remove unnecessary comments throughout codebase 2025-06-27 14:40:06 -07:00
Ian Gulliver 0267c7bed6 Rename DiffFiles to Diff, IntersectFiles to Intersect, RequiredFile to Required 2025-06-27 14:29:16 -07:00
Ian Gulliver 3845b5413b Make working directory default to os.Getwd() when empty 2025-06-27 14:26:48 -07:00
Ian Gulliver 6441337b32 Fix format inference by passing file paths to Evaluate() 2025-06-27 13:14:47 -07:00
Ian Gulliver 4453a5d3e8 Expand FormatOutput to accept optional paths for format inference 2025-06-27 12:46:46 -07:00
Ian Gulliver 46fcb9c244 Add jsonl format support to CLI tools and fix test format handling 2025-06-27 09:25:02 -07:00
Ian Gulliver 00737786cf Disable GC in short-lived CLI utilities for better performance 2025-06-27 08:40:17 -07:00
Ian Gulliver e475e1eb59 Convert BKL methods to standalone functions and remove Ext wrapper 2025-06-26 18:03:34 -07:00
Ian Gulliver 0c516d713a Refactor format API: add FormatOutput method and make format internals private 2025-06-26 14:45:18 -07:00
Ian Gulliver abc3ab900c Move bkli intersect functionality to library and migrate tests 2025-06-23 13:51:53 -07:00
Ian Gulliver 597c942025 Move bkld diff functionality to library and migrate tests to language framework 2025-06-23 12:23:32 -07:00
Ian Gulliver fc8df0ca4f Remove fsys and env from Parser struct, pass as parameters 2025-06-23 11:24:29 -07:00
Ian Gulliver 7c51d0cac9 Move utility functions to Parser methods 2025-06-23 11:02:20 -07:00
Ian Gulliver 4f87d6a419 Add race-safe environment variable support to language tests 2025-06-22 22:17:58 -07:00
Ian Gulliver 4eb2794f3d Refactor root-path handling from CLI to library code 2025-06-22 20:44:42 -07:00
Ian Gulliver bfd2828953 Convert bkl.Parser() API to use fs.FS with working directory support 2025-06-21 15:19:14 +03:00
Ian Gulliver f76a5039eb --root-path 2025-02-04 14:39:55 -08:00
Ian Gulliver 599a55f45c Split Document and EvalContext 2025-02-02 17:10:48 -08:00
Ian Gulliver 746bb461c8 bkld adds $match: {} to make bkli -> bkld -> bkl work 2024-11-24 11:45:14 -08:00
Ian Gulliver 400ac50581 Remove polyfill, jump forward to 1.23 2024-10-12 12:15:33 -07:00
Ian Gulliver 49e4706e89 Move $repeat much later for more intuitive effects 2024-08-08 22:15:31 -07:00
Ian Gulliver 9c29ae305c More Document plumbing 2023-10-16 20:10:12 -07:00
Ian Gulliver a88276af59 mergeFromDocs -> []*Document 2023-10-16 16:56:52 -07:00
Ian Gulliver 72950ba0ba Push Document out one more layer 2023-10-16 11:57:14 -07:00
Ian Gulliver 14ef0149b2 [bkld] Restore with single doc support 2023-10-15 21:15:01 -07:00
Ian Gulliver 47e0b9b022 Switch to unordered document state 2023-10-12 10:35:10 -07:00
Ian Gulliver a3d106f1ea gofumpt 2023-08-04 23:07:48 -07:00
Ian Gulliver a6100f5560 $merge and $replace cross-doc 2023-07-26 20:51:01 -07:00
Ian Gulliver 5460e639aa null -> $delete 2023-07-23 23:14:18 -07:00
Ian Gulliver 9f4e2dacc1 bkld updates for $delete/$replace (no more $patch) 2023-07-23 22:50:55 -07:00
Ian Gulliver eba33e0c91 bkl.Process(), bkld $merge/$replace/$output:false/$encode 2023-07-23 08:30:33 -07:00
Ian Gulliver 53d33a68a2 Set up flags properly for completions 2023-07-20 11:37:19 -07:00
Ian Gulliver 9326435dd8 Make --help work sanely throughout 2023-07-20 11:25:17 -07:00
Ian Gulliver fa1306476e bkld fix output format from filename 2023-07-20 10:04:29 -07:00
Ian Gulliver f22307fba9 bkld empty maps/lists 2023-07-19 20:20:11 -07:00
Ian Gulliver b888b0795d bkld doc 2023-07-19 18:14:53 -07:00
Ian Gulliver 22f813b8fb bklr 2023-07-19 13:48:06 -07:00
Ian Gulliver 9868dd8389 Split out polyfill, add bkld 2023-07-19 09:58:42 -07:00