Skip to content

refactor: apply factory pattern to status command - #16

Merged
aaearon merged 1 commit into
mainfrom
refactor/status-factory-pattern
Feb 19, 2026
Merged

refactor: apply factory pattern to status command#16
aaearon merged 1 commit into
mainfrom
refactor/status-factory-pattern

Conversation

@aaearon

@aaearon aaearon commented Feb 19, 2026

Copy link
Copy Markdown
Owner

Summary

  • Applies newStatusCommand(runFn) factory pattern to cmd/status.go, matching the pattern used by env and revoke commands
  • Eliminates duplicated command definition between NewStatusCommand and NewStatusCommandWithDeps

Test plan

  • All existing status tests pass unchanged
  • make test, make lint, make build all pass

Use newStatusCommand(runFn) factory matching the pattern used by
env and revoke commands, eliminating duplicated command definition
between NewStatusCommand and NewStatusCommandWithDeps.
@aaearon
aaearon merged commit f5e3410 into main Feb 19, 2026
1 check passed
@aaearon
aaearon deleted the refactor/status-factory-pattern branch February 19, 2026 07:09
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