Skip to content

Extract organization, member, and invitation CLI domains #382

Description

@sdairs

Parent: #318

Stack position: 3 of 6.

Goal

Extract organizations, members, and invitations into one complete organization-access domain module.

Scope

  • Move organization, member, and invitation clap enums/arguments and exhaustive write classification.
  • Move organization usage/Prometheus, member, invitation, and organization CRUD handlers, builders, output, and tests.
  • Move corresponding CloudClient wrapper methods into a domain-local impl CloudClient block.
  • Keep organization-resolution entry points available to other domains through the shared runtime boundary.
  • Re-export moved clap types through cloud::cli.

Acceptance

  • Legacy positional organization-ID parsing remains covered and unchanged.
  • Organization list/get wrappers remain usable by shared org resolution and service deletion.
  • Organization-only formatting helpers remain local to this module.
  • No organization/member/invitation handler remains in commands.rs.
  • Existing clap, builder, subprocess, and output behavior tests pass.
  • Clippy, rustfmt, and workspace checking pass.

Out of scope

  • Service and ClickPipes extraction.
  • Any API request, command-line, or output behavior change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestrustPull requests that update rust code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions