diff options
| author | tv <tv@krebsco.de> | 2026-11-20 01:15:42 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-20 02:17:12 +0100 |
| commit | 7a178877d3b979ae6bd0e48ddb06363a0d50affc (patch) | |
| tree | a574a53bfd627363f4b6a1cde88f1f72acc5af0e /src/federation/party.rs | |
| parent | e31d93577ccefdf540fd3df518a7d9837cb20cbb (diff) | |
continuum-party read: what `get` was, beside write
The client reads and writes, as the federation's words have it (a write,
what counts): `get` is `read` now, before any release had it; `write`
stays as 0.0.1 named it.
Diffstat (limited to 'src/federation/party.rs')
| -rw-r--r-- | src/federation/party.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/federation/party.rs b/src/federation/party.rs index 8357d22..813b1e6 100644 --- a/src/federation/party.rs +++ b/src/federation/party.rs @@ -38,7 +38,7 @@ //! * `status`: everything about the federation at the node but the values (`status`); //! with `--json`, as one JSON object of a versioned format; //! * `values [PATH]`: the values that count, all or under `PATH`, with who writes there; -//! * `get [PATH]`: what counts at `PATH` as one JSON value (`tree`): a place's, or what lies +//! * `read [PATH]`: what counts at `PATH` as one JSON value (`tree`): a place's, or what lies //! under it, places and the values within theirs; with `-r`, a string as it is; //! * `found PARTY=KEY|FILE...`: the first version of a federation, from its parties' keys, //! node lists (`--nodes`) and rules (`--rule`), to standard output; @@ -309,7 +309,7 @@ fn command() -> Command { ), ) .subcommand( - Command::new("get") + Command::new("read") .about( "What counts at a path, as JSON: a place's value, or what lies under it, \ places and the values within theirs, as one object; all without a path", @@ -704,7 +704,7 @@ pub(crate) async fn main() -> Result<()> { if name == "values" { return values(&node, sub).await; } - if name == "get" { + if name == "read" { let counts = node.counts().await?; let path = sub .get_one::<String>("path") |
