Skip to content

Comments

feat: add Hex/Base64 typed bytes support for flags, env, and config#53

Merged
leodido merged 3 commits intomainfrom
codex/pr3-bytes-end-to-end
Feb 23, 2026
Merged

feat: add Hex/Base64 typed bytes support for flags, env, and config#53
leodido merged 3 commits intomainfrom
codex/pr3-bytes-end-to-end

Conversation

@leodido
Copy link
Owner

@leodido leodido commented Feb 23, 2026

Summary

  • wire type-based byte semantics into built-in hooks:
    • []byte -> raw textual bytes
    • structcli.Hex -> hex-decoded bytes
    • structcli.Base64 -> base64-decoded bytes
  • register corresponding define hooks and decode hooks so flags/env/config/defaults all resolve consistently
  • add end-to-end hook tests covering defaults, flags, env, config, precedence, and invalid hex input

Testing

  • GOCACHE=/tmp/structcli-gocache go test ./internal/hooks -count=1
  • GOCACHE=/tmp/structcli-gocache go test $(go list ./... | grep -v 'github.com/leodido/structcli/internal/scope') -count=1

@leodido leodido changed the title feat: wire raw and encoded byte semantics end-to-end feat: wire raw and encoded byte semantics Feb 23, 2026
@leodido leodido self-assigned this Feb 23, 2026
@leodido leodido changed the title feat: wire raw and encoded byte semantics feat: add Hex/Base64 typed bytes support for flags Feb 23, 2026
@leodido leodido changed the base branch from codex/pr1-bytes-type-contract to main February 23, 2026 13:32
@leodido leodido changed the title feat: add Hex/Base64 typed bytes support for flags feat: add Hex/Base64 typed bytes support for flags Feb 23, 2026
@leodido leodido changed the title feat: add Hex/Base64 typed bytes support for flags feat: add Hex/Base64 typed bytes support for flags, env, and config Feb 23, 2026
@leodido leodido changed the title feat: add Hex/Base64 typed bytes support for flags, env, and config feat: add Hex/Base64 typed bytes support for flags, env, and config Feb 23, 2026
@leodido leodido force-pushed the codex/pr3-bytes-end-to-end branch from e28887f to ae8fdd8 Compare February 23, 2026 13:36
@leodido leodido force-pushed the codex/pr3-bytes-end-to-end branch from ae8fdd8 to da0f35b Compare February 23, 2026 13:50
@leodido leodido merged commit ca4174a into main Feb 23, 2026
4 checks passed
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