Skip to content

refactor: expose explorer as an embeddable library package#101

Merged
phsym merged 1 commit into
mainfrom
refactor/extract-explorer-library
Jun 17, 2026
Merged

refactor: expose explorer as an embeddable library package#101
phsym merged 1 commit into
mainfrom
refactor/extract-explorer-library

Conversation

@phsym

@phsym phsym commented Jun 17, 2026

Copy link
Copy Markdown
Owner

What

Move the TUI out of internal/ into the module-root explorer package so it can be embedded into other applications, and relocate the CLI entrypoint to cmd/kmip-explorer.

  • internal/explorer.goexplorer.go (package internalexplorer)
  • rename NewExplorerNew; document the public API (New, Run, Explorer)
  • main.gocmd/kmip-explorer/main.go, importing the explorer package
  • update goreleaser build dir and CI build path to ./cmd/kmip-explorer
  • update the go install path and add a library-usage section to the README

Breaking change

Source installs must now use:

go install github.com/phsym/kmip-explorer/cmd/kmip-explorer@latest

Binary releases are unaffected — the release binary name stays kmip-explorer.

Verification

  • go build ./..., go vet ./... pass; gofmt -l clean
  • all references to the old internal/NewExplorer paths updated (CLI, goreleaser, CI)

Move the TUI from internal/ to the module-root explorer package and
relocate the CLI entrypoint to cmd/kmip-explorer.
@phsym phsym force-pushed the refactor/extract-explorer-library branch from 0803d6e to c47b48c Compare June 17, 2026 15:20
@phsym phsym merged commit 614fb4a into main Jun 17, 2026
7 checks passed
@phsym phsym deleted the refactor/extract-explorer-library branch June 17, 2026 15:29
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.

2 participants