Expand description
CLI argument definitions (clap derive structs). Operator CLI subcommands — Sprint 11 rows 138, 163, 168.
Three thin wrappers over library primitives:
| Subcommand | JSS ref | Primitive |
|---|---|---|
quota reconcile <pod> / --all | bin/jss.js quota reconcile | [solid_pod_rs::quota::FsQuotaStore::reconcile] |
account delete <user-id> | JSS #292 (d9e56d8) | solid_pod_rs_idp::UserStore::delete |
invite create -u N [--expires-in] | JSS #304 (6578ab9) | solid_pod_rs_idp::InviteStore |
Every runner is async and takes an already-constructed store so the test harness can drive them with an in-memory double rather than a real filesystem / database.
Structs§
- Account
Delete Args - Arguments for
account delete. - Invite
Create Args - Arguments for
invite create. - Quota
Reconcile Args - Arguments for
quota reconcile. - Reconcile
Outcome - Reconcile result — returned by the quota runner so integration tests can assert on post-state rather than parsing stdout.
- Stdin
Prompt - Stdin-backed
Promptused by the real binary.
Enums§
- Account
Command accountsubcommands.- Invite
Command invitesubcommands.- Operator
Command - Operator subcommands. The binary entry point in
main.rsparses this via#[command(subcommand)]alongside the existing server-run flags. - Quota
Command quotasubcommands.
Traits§
- Prompt
- Input reader trait so tests can feed confirmation text without touching real stdin.
Functions§
- dispatch
- Dispatch an
OperatorCommandagainst real stores. The binary inmain.rscalls this, tests skip it and drive therun_*functions directly. - run_
account_ delete - Run
account delete. ReturnsOk(true)when a row was actually removed,Ok(false)when the user id was unknown, andErr(..)when the caller skipped confirmation without--yes. - run_
invite_ create - Run
invite create. Returns the minted invite and the final invite URL so the binary can print both in one step and tests can assert on the URL’s shape. - run_
quota_ reconcile - Fallback runner compiled when the
quotafeature is off at this crate’s level. Surfaces the actionable error rather than a crypticcommand not found.