Parent: #318
Stack position: 6 of 6. Completes the cloud CLI reorganization.
Goal
Move the ClickPipes runtime into its domain module, retire the cloud monoliths, and document the final command layout.
Scope
- Move ClickPipes handlers, request builders, parsers, output,
CloudClient wrapper methods, and unit tests into the ClickPipes module.
- Remove
cloud/commands.rs once all domain code has moved.
- Reduce
cloud/client.rs to core client/auth/error/shared functionality.
- Reduce
cloud/cli.rs to top-level cloud arguments/commands, domain re-exports, and top-level exhaustive classification.
- Keep the cross-domain subprocess request-shape test file intact; splitting that test file is separate work.
- Update
AGENTS.md command-adding guidance for co-located per-domain clap, handlers, builders, wrappers, and tests.
Acceptance
Out of scope
- Splitting
tests/cli_request_shape_test.rs.
- Changing Postgres direct-client behavior, cloud auth, commands, flags, or outputs.
Parent: #318
Stack position: 6 of 6. Completes the cloud CLI reorganization.
Goal
Move the ClickPipes runtime into its domain module, retire the cloud monoliths, and document the final command layout.
Scope
CloudClientwrapper methods, and unit tests into the ClickPipes module.cloud/commands.rsonce all domain code has moved.cloud/client.rsto core client/auth/error/shared functionality.cloud/cli.rsto top-level cloud arguments/commands, domain re-exports, and top-level exhaustive classification.AGENTS.mdcommand-adding guidance for co-located per-domain clap, handlers, builders, wrappers, and tests.Acceptance
commands.rsis removed andclient.rs/cli.rshave only their final shared responsibilities.cargo clippy --workspace --all-targets -- -D warningsandcargo fmt --all --checkpass.Out of scope
tests/cli_request_shape_test.rs.