From edb4443510d7c8e4957e953093a25f9e7876493e Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 19 Nov 2026 21:00:40 +0000 Subject: continuum-party get: what counts, as JSON, a path at a time What counts is kept by place, each place's value whole: `values` showed it so, a place a line, and `--json` as one object keyed by places. An application holds it as one tree. `get [PATH]` reads it so (tree, at): each place's value at its path, the maps on its way made, so that `get home/tv` is one object of everything under it, and `get home/tv/hosts/laptop/ip6` reaches into a place's value, a list's items by their index. Where a place lies under another's value, the deeper place is the later word there (merge). Nothing at a path is an error. `-r` writes a string as it is, as jq -r does; other values as JSON. Bash completes it with places and the paths on their way. --- docs/guides/federation/getting-started.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'docs/guides/federation/getting-started.md') diff --git a/docs/guides/federation/getting-started.md b/docs/guides/federation/getting-started.md index 483a991..89d43ef 100644 --- a/docs/guides/federation/getting-started.md +++ b/docs/guides/federation/getting-started.md @@ -141,8 +141,14 @@ 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 values -# home/tv/motd "hello" (tv) +continuum-party --node http://lass:secret@localhost:3000 get home/tv/motd -r +# hello +continuum-party --node http://lass:secret@localhost:3000 get home +# { +# "tv": { +# "motd": "hello" +# } +# } ``` lass can't write there: its node refuses it, as every node does. -- cgit v1.3.1