From 7a178877d3b979ae6bd0e48ddb06363a0d50affc Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 20 Nov 2026 01:15:42 +0000 Subject: 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. --- src/federation/party.rs | 6 +++--- src/federation/party/status.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/federation') 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::("path") diff --git a/src/federation/party/status.rs b/src/federation/party/status.rs index 47c32e5..6094a23 100644 --- a/src/federation/party/status.rs +++ b/src/federation/party/status.rs @@ -1,5 +1,5 @@ //! `continuum-party status`: everything about the federation at a node but the values -//! (`values`, `get`). The store; the node; the current version; every party's keys and +//! (`values`, `read`). The store; the node; the current version; every party's keys and //! nodes, when the node last heard from each and what each runs; the proposals on the //! current version, how they stand and what each does; what the node refused of its own; //! and the party the client works as: its key, its record against the node, what it signs -- cgit v1.3.1