Skip to main content

Module cli

Module cli 

Source
Expand description

CLI argument definitions (clap derive structs). Operator CLI subcommands — Sprint 11 rows 138, 163, 168.

Three thin wrappers over library primitives:

SubcommandJSS refPrimitive
quota reconcile <pod> / --allbin/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§

AccountDeleteArgs
Arguments for account delete.
InviteCreateArgs
Arguments for invite create.
QuotaReconcileArgs
Arguments for quota reconcile.
ReconcileOutcome
Reconcile result — returned by the quota runner so integration tests can assert on post-state rather than parsing stdout.
StdinPrompt
Stdin-backed Prompt used by the real binary.

Enums§

AccountCommand
account subcommands.
InviteCommand
invite subcommands.
OperatorCommand
Operator subcommands. The binary entry point in main.rs parses this via #[command(subcommand)] alongside the existing server-run flags.
QuotaCommand
quota subcommands.

Traits§

Prompt
Input reader trait so tests can feed confirmation text without touching real stdin.

Functions§

dispatch
Dispatch an OperatorCommand against real stores. The binary in main.rs calls this, tests skip it and drive the run_* functions directly.
run_account_delete
Run account delete. Returns Ok(true) when a row was actually removed, Ok(false) when the user id was unknown, and Err(..) 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 quota feature is off at this crate’s level. Surfaces the actionable error rather than a cryptic command not found.