feat(tpagectl): implement site command group #546
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!546
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/cli-site"
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
sitecommand group to tpagectl, starting Phase 2 site management.internal/tpagectl/sitepackage with asiteparent command registering five subcommands:create,list,get,delete, andupdate.--help/usage documentation describing its intended flags (e.g.createaccepts--name,--owner,--visibility[public|limited|private], optional--domain,--preview-enabled;get/delete/updatetake a site name;listsupports--format,--filter).not implemented yeterror; real logic lands with their own roadmap issues (#171, #176, #182, #187, #192).sitegroup.Why
Phase 2 roadmap task #164. Establishes the site command scaffolding so subcommand implementation issues can land as focused PRs with clean diffs (one file per subcommand).
Testing
errNotImplementedsite;site --helplists all subcommands; individual subcommand help rendersgo test -race ./...passesgolangci-lint runcleanBreaking Changes
None.
Notes
Subcommand stubs intentionally do not consume the HTTP client yet — each will when its own issue implements it.
Closes #162
Closes #163
Closes #164
Summary
Site command group scaffolding for tpagectl. Verified:
go test -race ./...passes (including newinternal/tpagectl/site) andgolangci-lint run ./...is clean. Closes #162-164.No blocking issues.
Suggestions (filed as issues)
internal/tpagectl/site/create.go,delete.go,list.go– help text references flags/behaviors not yet wired (--name/--owner/--visibility/--domain/--preview-enabled,--force,--format/--filter); users invoking them get "flag provided but not defined". Consider placeholder flags or softened descriptions until #165-170 land. Filed as #547Praise
errNotImplementedwitherrors.Isis the right stub patternsites,rm) andArgsUsage