aboutsummaryrefslogtreecommitdiffstats
path: root/share/bash-completion
diff options
context:
space:
mode:
Diffstat (limited to 'share/bash-completion')
-rw-r--r--share/bash-completion/completions/continuum-party11
1 files changed, 7 insertions, 4 deletions
diff --git a/share/bash-completion/completions/continuum-party b/share/bash-completion/completions/continuum-party
index de44be7..7834536 100644
--- a/share/bash-completion/completions/continuum-party
+++ b/share/bash-completion/completions/continuum-party
@@ -24,10 +24,12 @@ _continuum_party_parties()
awk '/passing a change:$/ { on = 1; next } on && /^ [^ ]/ { print $1; next } { on = 0 }'
}
-# The places holding a value.
+# The places holding a value, and the paths on their way.
_continuum_party_places()
{
- _continuum_party_asking values | cut -d' ' -f1
+ _continuum_party_asking values | cut -d' ' -f1 |
+ awk -F/ '{ path = $1; print path; for (i = 2; i <= NF; i++) { path = path "/" $i; print path } }' |
+ sort -u
}
# The features of the revisions the client knows, as `--version` names them.
@@ -79,7 +81,7 @@ _continuum_party()
local global_options='--node --token --key --record --federation --config --unset
--help --version'
local commands='init write keys nodes next propose vote again found root fork check
- judge proposals show status values twice help'
+ judge proposals show status values get 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
@@ -216,9 +218,10 @@ _continuum_party()
_continuum_party_words '--list --add --remove --set --force'
fi
;;
- write | values)
+ write | values | get)
if [[ $cur == -* ]]; then
[[ $command == values ]] && _continuum_party_words '--json'
+ [[ $command == get ]] && _continuum_party_words '-r --raw'
elif ((n == 0)); then
_continuum_party_words "$(_continuum_party_places)"
fi