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. --- CHANGELOG.md | 2 +- docs/guides/federation/getting-started.md | 4 ++-- docs/guides/federation/watching.md | 2 +- docs/guides/federation/writing-and-reading.md | 6 +++--- share/bash-completion/completions/continuum-party | 4 ++-- src/federation/party.rs | 6 +++--- src/federation/party/status.rs | 2 +- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5fda415..c2e592d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,7 +34,7 @@ it from the release before ([`docs/operations.md`](docs/operations.md), [Voting](docs/guides/federation/proposing-and-voting.md#voting); [`src/federation/party.rs`](src/federation/party.rs)). -* `continuum-party get PATH` reads what counts as JSON: a place's value, or what lies +* `continuum-party read PATH` reads what counts as JSON: a place's value, or what lies under a path as one object, within places' values too; `-r` a string as it is ([`docs/guides/federation/writing-and-reading.md`](docs/guides/federation/writing-and-reading.md), [Reading](docs/guides/federation/writing-and-reading.md#reading); diff --git a/docs/guides/federation/getting-started.md b/docs/guides/federation/getting-started.md index 89d43ef..c2e1bc6 100644 --- a/docs/guides/federation/getting-started.md +++ b/docs/guides/federation/getting-started.md @@ -141,9 +141,9 @@ names them once, when it begins its record (`init --federation NAME`), and never lass reads it on its node, with everything else that counts: ```sh -continuum-party --node http://lass:secret@localhost:3000 get home/tv/motd -r +continuum-party --node http://lass:secret@localhost:3000 read home/tv/motd -r # hello -continuum-party --node http://lass:secret@localhost:3000 get home +continuum-party --node http://lass:secret@localhost:3000 read home # { # "tv": { # "motd": "hello" diff --git a/docs/guides/federation/watching.md b/docs/guides/federation/watching.md index 056f77c..4bc062d 100644 --- a/docs/guides/federation/watching.md +++ b/docs/guides/federation/watching.md @@ -8,7 +8,7 @@ store, through its API and its log. ## Through the API `continuum-party status` says everything about the federation at the node but the values -(`get`, `values`), with what needs a look in colour on a terminal: +(`read`, `values`), with what needs a look in colour on a terminal: ``` store 6d1e8a0c4f2b9d77… diff --git a/docs/guides/federation/writing-and-reading.md b/docs/guides/federation/writing-and-reading.md index a5b7ec3..593f3ce 100644 --- a/docs/guides/federation/writing-and-reading.md +++ b/docs/guides/federation/writing-and-reading.md @@ -104,9 +104,9 @@ what lies under a path as one object, the places under it and the values within a list's items by their index; `-r` writes a string as it is, as `jq -r` does: ```sh -continuum-party get home/tv/motd -r +continuum-party read home/tv/motd -r # hello -continuum-party get home/tv +continuum-party read home/tv # { # "hosts": { # "laptop": { @@ -115,7 +115,7 @@ continuum-party get home/tv # }, # "motd": "hello" # } -continuum-party get home/tv/hosts/laptop/ip6 -r +continuum-party read home/tv/hosts/laptop/ip6 -r # 42:0:a46e::1 ``` diff --git a/share/bash-completion/completions/continuum-party b/share/bash-completion/completions/continuum-party index be1729c..dbc8961 100644 --- a/share/bash-completion/completions/continuum-party +++ b/share/bash-completion/completions/continuum-party @@ -81,7 +81,7 @@ _continuum_party() local global_options='--node --token --key --record --party --federation --config --unset --help --version' local commands='init write keys nodes next propose vote again restore found root fork - check judge proposals show status values get twice help' + check judge proposals show status values read twice help' local intents='admit remove give take keys nodes checkpoint revision' # The command, the intent of `propose` and `fork`, and the arguments after them that @@ -218,7 +218,7 @@ _continuum_party() _continuum_party_words '--list --add --remove --set --force' fi ;; - write | values | get) + write | values | read) if [[ $cur == -* ]]; then [[ $command == values ]] && _continuum_party_words '--json' [[ $command == values ]] || _continuum_party_words '-r --raw' 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