Promote org/project/repo/grant out of labs · Entire

Promote org/project/repo/grant out of labs

1d5cc06→main·

Soph·1w ago·7 files·+28 added/-52 removed

Make the control-plane command groups visible in root help instead of
only discoverable via entire labs:

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com

Sessions

01KWYYS6SP7XS2Q16REZ5TKP4VView transcript

Changes

7

Command Layout

The visible CLI is organized around five noun groups plus a small set of
top-level verbs. The groups are the canonical home for each verb; legacy
top-level shortcuts remain functional but hidden, and emit a deprecation hint
pointing at the canonical group form. Newer experimental command families are

Experimental command families advertised through entire labs:

MCLAUDE.md+8/-1
// newGrantCmd is the `entire grant` command group: manage access
// grants and org membership on the Entire control plane. Org, project, and
// repo each support add / list / remove.
func newGrantCmd() *cobra.Command {
    cmd := &cobra.Command{
        Use:    "grant",
        Short:  "Manage Entire access grants and org membership",
        Hidden: true,
    }
    addControlPlaneFlags(cmd)
    cmd.AddCommand(newGrantOrgCmd())
}
// newOrgCmd is the `entire org` command group: create, list, get, and
// delete organizations on the Entire control plane.
func newOrgCmd() *cobra.Command {
    cmd := &cobra.Command{
        Use:    "org",
        Short:  "Manage Entire organizations",
        Hidden: true,
    }
    addControlPlaneFlags(cmd)
    cmd.AddCommand(newOrgCreateCmd())
}
// newProjectCmd is the `entire project` command group: create, list,
// get, and delete projects on the Entire control plane.
func newProjectCmd() *cobra.Command {
    cmd := &cobra.Command{
        Use:    "project",
        Short:  "Manage Entire projects",
        Hidden: true,
    }
    addControlPlaneFlags(cmd)
    cmd.AddCommand(newProjectCreateCmd())
}
// newRepoCmd is the `entire repo` command group: control-plane
// repository lifecycle (create, list within a project, get, delete), the
// `mirror` and `visibility` subtrees, plus the `clone` convenience that
// resolves a mirror and shells out to `git clone`.
func newRepoCmd() *cobra.Command {
    cmd := &cobra.Command{
        Use:    "repo",
        Short:  "Manage Entire repositories",
        Hidden: true,
    }
    addControlPlaneFlags(cmd)
    cmd.AddCommand(newRepoCreateCmd())
}
// Top-level lifecycle and standalone commands.
cmd.AddCommand(cliReview.NewCommand(buildReviewDeps()))        // `review`; hidden during maturation
cmd.AddCommand(investigate.NewCommand(buildInvestigateDeps())) // hidden during maturation; runs a multi-agent investigation
cmd.AddCommand(newOrgCmd())                                    // hidden during maturation; control-plane org management
cmd.AddCommand(newProjectCmd())                                // hidden during maturation; control-plane project management
cmd.AddCommand(newRepoCmd())                                   // hidden during maturation; control-plane repo lifecycle
cmd.AddCommand(newGrantCmd())                                  // hidden during maturation; control-plane access grants