Skip to content

refactor(pass): extract get docs and engine client plumbing - #667

Merged
joe0BAB merged 2 commits into
mainfrom
feat/get-reveal
Oct 5, 2026
Merged

joe0BAB merged 2 commits into
mainfrom
feat/get-reveal

Conversation

@joe0BAB

@joe0BAB joe0BAB commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Changes

Extract get docs to embedded markdown

Moves the Long description of get into get_long.md and adds a get_example.md, matching the pattern set
and run already use. The rendered help text is unchanged.

Extract engine client plumbing from run

Moves the client options, connection setup, preflight ping and the authorize check from run.go into a new
client.go, so other commands can reuse them:

  • ClientOption with WithSocketPath, WithTimeout and WithResponseTimeout. RunOption stays as an alias,
    so existing callers compile unchanged.
  • connectEngine builds the client and keeps the existing rule: ping the engine first when requests are
    unbounded, so a dead socket fails fast instead of hanging.
  • authorize wraps the Authorize call and maps a deny to ErrAccessDenied. authorizeEnv delegates to it. It
    has one caller today; get --reveal will be the second.

Moves the Long description of `get` into get_long.md and adds a
get_example.md, matching the pattern used by `set` and `run`.
@joe0BAB joe0BAB changed the title Feat/get reveal refactor(pass): extract get docs and engine client plumbing Oct 5, 2026
@joe0BAB
joe0BAB marked this pull request as ready for review October 5, 2026 13:42

@docker-agent docker-agent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assessment: 🟢 APPROVE

Comment thread plugins/pass/commands/client.go Outdated
Moves the client options, connection setup, preflight ping and the
authorize check into client.go so other commands can reuse them.
RunOption stays as an alias of ClientOption.
@joe0BAB
joe0BAB merged commit 1827dc7 into main Oct 5, 2026
12 checks passed
@joe0BAB
joe0BAB deleted the feat/get-reveal branch October 5, 2026 14:03
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.

3 participants