diff options
| author | tv <tv@krebsco.de> | 2026-11-19 21:49:18 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-19 22:54:03 +0100 |
| commit | 4c2a4dfdb88fb008e0ba915047207efb8418ce77 (patch) | |
| tree | 7d550d6372a7ac38a65c7dea930c9474e949ac6a /share | |
| parent | 5aa649bcb366ed6863732dac68ce081bacdbe4a8 (diff) | |
continuum-party status: everything but the values, in colour, and as JSON
`status` becomes the one place to look (party/status.rs): everything
about the federation at the node but the values, which `get` and
`values` read.
* the store: its ID, checkpoint, heads, what it took, its stop;
* the node: its party, whether it votes by itself, the revisions it knows;
* the version: number, hash, federation, revision, how many pass a change;
* every party: the keys its version names and its key set, --key's
marked, and its nodes, each with its name, how long ago the node heard
from it, and what it runs (wire versions, newest revision);
* every proposal on the current version: how it stands, who voted what
and who not yet, who proposed it and what it does (version_lines, as
`show` says it), what moving to its checkpoint refuses, why no client
backs it;
* what the node refused of its own;
* the party the client works as: its --key, its record held against the
node's votes, what `again` signs again;
* the warnings of what may keep votes away (cut_off).
It is built as one JSON object (`model`), which `--json` writes, its
`format` (FORMAT, 1) raised where it changes otherwise than by more
members; what people read is rendered from it (`render`), and may change
from release to release. On a terminal, in colour (Paint): true colour
where COLORTERM says so, 256 where TERM does, else the basic eight; none
with NO_COLOR, TERM=dumb, or off a terminal. What is fine is green, what
needs a look yellow, what is wrong red; headings and the shortest prefix
naming a proposal bold.
Diffstat (limited to 'share')
| -rw-r--r-- | share/bash-completion/completions/continuum-party | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/share/bash-completion/completions/continuum-party b/share/bash-completion/completions/continuum-party index 72c6a6f..570aeb1 100644 --- a/share/bash-completion/completions/continuum-party +++ b/share/bash-completion/completions/continuum-party @@ -21,7 +21,7 @@ _continuum_party_proposals() _continuum_party_parties() { _continuum_party_asking status | - awk '/passing a change:$/ { on = 1; next } on && /^ [^ ]/ { print $1; next } { on = 0 }' + awk '/^parties$/ { on = 1; next } on && /^[^ ]/ { on = 0 } on && /^ [^ ]/ { print $1 }' } # The places holding a value, and the paths on their way. @@ -229,6 +229,9 @@ _continuum_party() init) [[ $cur == -* ]] && _continuum_party_words '--root' ;; + status) + [[ $cur == -* ]] && _continuum_party_words '--json' + ;; next) [[ $cur == -* ]] && _continuum_party_words '--revision' ;; |
