Skip to content

Add TAP CLI tool#2

Merged
pelle merged 4 commits intomainfrom
feat/tap-cli
Mar 1, 2026
Merged

Add TAP CLI tool#2
pelle merged 4 commits intomainfrom
feat/tap-cli

Conversation

@pelle
Copy link
Copy Markdown
Contributor

@pelle pelle commented Mar 1, 2026

Summary

  • Adds a tap CLI binary at cmd/tap/ that wraps all go-didcomm CLI commands and adds TAP-specific functionality
  • tap message <type> creates all 20 TAP message types with --from, --to, --thid, and --body flags
  • tap receive unpacks a DIDComm envelope and parses the TAP body into a typed result
  • Removes local replace directive — imports go-didcomm from GitHub (depends on go-didcomm#3)
  • Updates README with CLI installation and usage documentation
  • Updates CLAUDE.md with CLI file layout and commands

Test plan

  • All 20 message types tested (message_test.go — 27 tests)
  • Receive command tested with signed and authcrypt envelopes (receive_test.go — 4 tests)
  • End-to-end pipe workflow tested: message → pack → receive
  • DIDComm passthrough commands tested (did generate-key)
  • Validation error propagation tested (missing flags, invalid bodies)
  • Verify go install github.com/TransactionAuthorizationProtocol/tap-go/cmd/tap@latest works

🤖 Generated with Claude Code

Add a `tap` CLI binary at cmd/tap/ that wraps all go-didcomm CLI commands
(did, pack, unpack, send) and adds TAP-specific functionality:

- `tap message <type>` creates all 20 TAP message types with --from, --to,
  --thid, and --body flags, outputting DIDComm JSON to stdout
- `tap receive` unpacks a DIDComm envelope and parses the TAP body into
  a typed result with body type, envelope metadata, and parsed fields

Also removes the local replace directive for go-didcomm in favor of
importing from GitHub, and updates README and CLAUDE.md with CLI docs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
pelle and others added 3 commits March 1, 2026 15:03
Require running linter and tests locally before pushing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@pelle pelle merged commit bc8ca71 into main Mar 1, 2026
3 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