Skip to content

Add POSIX kv tool for parsing key-value pairs#2

Merged
arthurborgesdev merged 2 commits intomainfrom
codex/add-kv-tool
Feb 2, 2026
Merged

Add POSIX kv tool for parsing key-value pairs#2
arthurborgesdev merged 2 commits intomainfrom
codex/add-kv-tool

Conversation

@arthurborgesdev
Copy link
Contributor

Summary: add POSIX kv (jq required) with parse (JSONL) and json (single object).
Behavior: strict fails on first malformed token; loose skips malformed tokens; empty lines emit {}.
Examples:

  • echo 'a=1 b=2' | kv parse | jsonl validate
  • printf 'Host: example.com\n' | kv parse --delim colon --trim
    Tests: make test
    Limitations: only " and \ unescaped in double quotes; auto header requires standalone key: token.

@arthurborgesdev arthurborgesdev merged commit 4d5629a into main Feb 2, 2026
2 checks passed
@arthurborgesdev arthurborgesdev deleted the codex/add-kv-tool branch February 2, 2026 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant