Commit graph

120 commits

Author SHA1 Message Date
8c23375208 Move CLI commands to cli/ package for extensibility
- Rename internal/cmd/ to cli/
- Export commands: RootCmd, DropCmd, ConfigCmd
- Enable custom app creation by importing cli package
2026-02-28 16:45:57 -06:00
5c8e2fc607 🔀 Merge tag 'v0.0.11' into develop
🔖 Release 0.0.11 with better nested key support
2026-02-28 16:18:58 -06:00
a761ab138b 🔀 Merge branch 'rel/0.0.11' into stable v0.0.11 2026-02-28 16:17:51 -06:00
3bb2c2c95a 📝 Update CHANGELOG for v0.0.11 release 2026-02-28 16:17:00 -06:00
ebb0b12069 Add bep.JSON helper for JSON assertion in tests
- Create internal/testutil/bep package with JSON helper
- Use bep.JSON in formatters/json_test.go, models/entry_test.go, and models/meta_test.go
2026-02-13 16:25:37 -06:00
1110288d84 Migrate from testify to nalgeon/be testing library
- Replace all testify/assert and testify/require with be library
- Update go.mod to use be v0.3.0 instead of testify
- Simplify test assertions using be.Equal, be.Err, and be.True
- Refactor append_test, entry_test, meta_test, log_test, and formatter tests
2026-02-13 16:02:38 -06:00
79f58b3e6c Refactor append_test to use standalone test functions
- Remove testify/suite dependency
- Use t.ArtifactDir() and t.Cleanup() for test isolation
- Add proper cleanup for config overrides in each test
- Update Go version to 1.26.0
2026-02-13 16:02:38 -06:00
6095c2497e Add support for mixed-level nested keys with dot/blank handling
- Handle @parent:child and @parent🧒grandchild coexistence
- Use '.' key for parent values when nested children exist
- Add comprehensive test cases for double-nested scenarios
- Support both '.' and '' as special keys for parent values
2026-02-12 10:41:35 -06:00
44ecfd6ac9 📝 Update CHANGELOG for v0.0.10 release v0.0.10 2026-02-10 18:52:46 -06:00
04e49a9af4 🔀 Merge branch 'feat/nested-data' into develop 2026-02-10 18:23:19 -06:00
4fc1c623a0 Implement full support for nested fields in Meta and Entry marshalling
This commit completes the implementation of nested field support.
- :
    -  now correctly handles  and  by recursively flattening them into  format.
    - Introduced  for recursive map marshalling.
    - Refactored  for cleaner buffer writing.
- : Added comprehensive test cases for nested JSON, nested maps, double-nested maps, and nested keys within JSON to ensure correct marshalling and unmarshalling.
- : Updated tests to reflect the new nil handling and removed redundant JSON object test.

This allows for more flexible and structured data representation within log entries.
2026-02-10 18:15:07 -06:00
c4e864afa5 Add support for nested fields in log entries and JSON marshalling
This commit introduces the ability to handle nested fields within log entries.
The  file has been updated with a  function
that transforms flat keys with a : delimiter (e.g., obj:foo) into nested
JSON objects (e.g., ).

The  file includes new test cases to verify that:
- Nested fields are correctly unmarshalled from string representations.
- Nested fields are correctly marshalled into JSON objects.

This enhancement allows for more structured and organized metadata within log entries.
2026-02-10 16:13:39 -06:00
91c5b3ad15 📝 Add documentation for nested fields 2026-02-10 15:43:37 -06:00
fbcec20221 🐛 Fix entry_test.go assertions for new id field 2026-02-10 15:43:23 -06:00
136546d655 🐛 Fix append_test.go assertions for added ids 2026-02-10 15:31:10 -06:00
3b36055b1b Ensure an id is included when serializing a log entry 2026-02-05 13:11:28 -06:00
21534bb9c9 🔀 Merge tag 'v0.0.9' into develop
🔖 Update Metas with Set method
2026-02-01 21:16:19 -06:00
26da173dc7 🔀 Merge branch 'rel/0.0.9' into stable v0.0.9 2026-02-01 21:14:59 -06:00
a1add58c34 📝 Update CHANGELOG 2026-02-01 21:14:12 -06:00
e9c01097a6 Add Set method to Metas and tests 2026-02-01 18:18:46 -06:00
dbcaf7ee3c 🔀 Merge tag 'v0.0.8' into develop
🔖 Release 0.0.8 with Metas.Get method
2026-02-01 12:00:02 -06:00
d64102cea4 🔀 Merge branch 'rel/0.0.8' into stable v0.0.8 2026-02-01 11:31:43 -06:00
ccdbf05e83 📝 Update CHANGELOG.md for v0.0.8 2026-02-01 11:31:31 -06:00
cccac79439 Add Get method to Metas type 2026-02-01 11:29:04 -06:00
8f585bf7d2 🔀 Merge branch 'rel/0.0.7' into develop 2025-11-05 16:36:57 -06:00
be517253ef 🔀 Merge branch 'rel/0.0.7' into stable v0.0.7 2025-11-05 16:36:23 -06:00
27c3f54e71 📝 Update CHANGELOG for v0.0.7 release 2025-11-05 16:35:59 -06:00
193eb43c93 📝 Add CHANGELOG update requirement to Git Flow Workflow guidelines 2025-11-05 16:34:04 -06:00
a0e81c1082 ️ Only compile regexes once 2025-11-05 16:27:53 -06:00
f0ee52b3ef 📝 Add Git Flow Workflow guidelines to AGENTS.md 2025-11-05 16:21:14 -06:00
ad7eba9b03 🚚 Refactor project structure to follow standard Go layout conventions 2025-11-05 16:07:48 -06:00
c0007c291d 📝 Add AGENTS.md with comprehensive guidelines for coding agents 2025-11-05 16:07:44 -06:00
0b2e178066 🐛 Only trim bang on out 2024-10-31 15:09:42 -05:00
a8cbfd087f Allow value prefixed with bang to skip parsing 2024-10-31 14:31:16 -05:00
d0b6c40445 🔀 Merge branch 'stable' into develop 2024-10-09 15:19:06 -05:00
fba5551bb3 🔨 Fix make open-report for Darwin 2024-10-09 15:14:37 -05:00
85671a076c ✏️ Fix Makefile so it doesn't re-run test and fmt when it doesn't need to 2024-10-09 15:13:34 -05:00
da35bf4bcf Fix TestMkdirErr on Darwin 2024-10-09 15:08:37 -05:00
379819dde5 🔀 Merge tag 'v0.0.6' into develop
⬆️ Upgrade go-dateparser to new version
2024-10-07 15:55:31 -05:00
345ef9471d 🔀 Merge branch 'rel/0.0.6' into stable v0.0.6 2024-10-07 15:53:04 -05:00
5f6ce7ca21 📝 Update CHANGELOG 2024-10-07 15:52:37 -05:00
514ffee613 🔀 Merge branch 'feature/date-parser-refactor' into develop 2024-10-07 15:51:06 -05:00
ece9256745 👽️ Support changes in go-dateparser 2024-10-07 15:50:33 -05:00
e9c1bf7070 ♻️ Return bool directly
Silly me
2024-10-07 15:50:02 -05:00
306b2c597d ⬆️ Upgrade go-dateparser to new version
Don't need my replaced version anymore
2024-10-07 15:49:13 -05:00
ab0dea2805 🔀 Merge tag 'v0.0.5' into develop
 Add --output_json option for drop command
2024-10-07 14:20:50 -05:00
7312714ccb 🔀 Merge branch 'rel/0.0.5' into stable v0.0.5 2024-10-07 14:19:29 -05:00
9980ae8cc7 📝 Update CHANGELOG 2024-10-07 14:18:32 -05:00
02a7babb36 Syntactic sugar in drop command for outputting json 2024-10-07 14:15:28 -05:00
80e07dbd14 🔀 Merge tag 'v0.0.4' into develop
🔖 v0.0.4 with config -p flag
2024-05-08 15:07:33 -05:00