feat(tpagectl): implement deployment command group #562
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thwap/thwap-pagesd!562
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/cli-deployment"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Adds the
deploymentcommand group to tpagectl, starting Phase 3 deployment management.internal/tpagectl/deploymentpackage with adeploymentparent command registering four subcommands:list,get,promote, androllback.--help/usage documentation describing its intended flags (e.g.listtakes a site name with--limit/--format;getuses--site+--versionor--latest;promoteuses--site+--version;rollbackuses--site+ optional--to-versionwith confirmation/--force).not implemented yeterror; real logic lands with their own roadmap issues (#200, #204, #209, #214).deploymentgroup alongsidesite.Why
Phase 3 roadmap task #194. Establishes the deployment command scaffolding so subcommand implementation issues land as focused PRs with clean diffs (one file per subcommand).
Testing
errNotImplementeddeployment;deployment --helplists all subcommands; individual subcommand help rendersgo test -race ./...passes (18 packages)golangci-lint runcleanBreaking Changes
None.
Notes
Mirrors the site command group scaffold pattern. Subcommand stubs do not consume the HTTP client yet — each will when its own issue implements it.
Closes #193
Closes #194
Summary
Deployment command group scaffolding for tpagectl. Verified:
go test -race ./...passes (18 packages, including newinternal/tpagectl/deployment) andgolangci-lint run ./...is clean. Closes #193-194.No blocking issues.
Suggestions (filed as issues)
internal/tpagectl/deployment/list.go,get.go,promote.go,rollback.go– help text references flags/behaviors not yet wired (--limit/--format,--site/--version/--latest,--to-version/--force); users invoking them get "flag provided but not defined". Consider placeholder flags or softened descriptions until #200/#204/#209/#214 land. Filed as #563Praise
errNotImplementedwitherrors.Isis the right stub patterndeploymentsalias and clean root-command wiring