aboutsummaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-19 19:04:32 +0000
committertv <tv@krebsco.de>2026-11-19 20:14:19 +0100
commit00b5378a62d29f7489075f6d747d50f07cb45caa (patch)
treef82d21f2e5b4e0b8f731abd8783fb694797b9633 /share
parent25689b7dc006d5db3e0065d613302c0eb5335efe (diff)
continuum-party keys: files of keys too
`keys --add`, `--remove` and `--set` took authorized_keys lines alone, each one argument, so a .pub file went in as "$(cat phone.pub)". They take files of such lines too now, as `propose admit` and `propose keys` do (keys_given, of which key_lines is the one asking for a key at least), and bash completes files there.
Diffstat (limited to 'share')
-rw-r--r--share/bash-completion/completions/continuum-party8
1 files changed, 6 insertions, 2 deletions
diff --git a/share/bash-completion/completions/continuum-party b/share/bash-completion/completions/continuum-party
index e79eee2..057e8a5 100644
--- a/share/bash-completion/completions/continuum-party
+++ b/share/bash-completion/completions/continuum-party
@@ -139,8 +139,12 @@ _continuum_party()
_continuum_party_words "$(_continuum_party_features)"
return
;;
- --node | --token | --unset | --nodes | --founder | --rule | --at | --add | --remove | \
- --set)
+ --add | --remove | --set)
+ # Keys, or files of them; nodes by ID.
+ [[ $command == keys ]] && _continuum_party_files
+ return
+ ;;
+ --node | --token | --unset | --nodes | --founder | --rule | --at)
return
;;
esac