Add JSON5 support, --json CLI flag, typed getters, and improve YAML quoting

- Updated JSON resolver to use gjson library for JSON5 support (comments, trailing commas)
- Added --json flag to CLI tool for JSON output format
- Added typed getter methods: GetInt(), GetUint(), GetFloat(), GetBool(), GetBytes()
- GetBytes() supports human-readable formats like "10G", "20KiB" via go-humanize
- Fixed YAML interpolation to always quote output values for safety
- Updated README to clarify YAML-only input and automatic quoting behavior
- Added .gitignore to exclude compiled binary
- Fixed test config files to use unquoted interpolation syntax
- Updated tests to expect quoted interpolation output
This commit is contained in:
2025-07-21 12:13:14 +02:00
parent 8a38afba5e
commit 3c3732f033
10 changed files with 418 additions and 63 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/smartconfig