feat(tpagectl): implement preview command group #572
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!572
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/cli-preview"
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
previewcommand group to tpagectl, starting Phase 4 preview management.internal/tpagectl/previewpackage with apreviewparent command registering four subcommands:list,deploy,delete, andget.--help/usage documentation describing its intended flags (e.g.listtakes a site name with--format;deployuses--site+--branchand waits for readiness;deleteuses--site+--branchor--allwith confirmation/--force;getuses--site+--branch).not implemented yeterror; real logic lands with their own roadmap issues (#221, #226, #231, #235).previewgroup alongsidesiteanddeployment.Why
Phase 4 roadmap task #216. Establishes the preview command scaffolding so subcommand implementation issues land as focused PRs with clean diffs (one file per subcommand).
Testing
errNotImplementedpreview;preview --helplists all subcommands; individual subcommand help rendersgo test -race ./...passes (19 packages)golangci-lint runcleanBreaking Changes
None.
Notes
Mirrors the site and deployment command group scaffold pattern. Subcommand stubs do not consume the HTTP client yet — each will when its own issue implements it.
Closes #215
Closes #216
Summary
Preview command group scaffolding for tpagectl. Verified:
go test -race ./...passes (19 packages, including newinternal/tpagectl/preview) andgolangci-lint run ./...is clean. Closes #215-216.No blocking issues.
Suggestions (filed as issues)
internal/tpagectl/preview/list.go,deploy.go,delete.go,get.go– help text references flags/behaviors not yet wired (--format,--site/--branch+ readiness wait,--all/--force,--site/--branch); users invoking them get "flag provided but not defined". Consider placeholder flags or softened descriptions until #221/#226/#231/#235 land. Filed as #574Praise
errNotImplementedwitherrors.Isis the right stub patternpreviewsalias and clean root-command wiring