mirror of
https://github.com/EvolutionAPI/evolution-client-python.git
synced 2025-07-14 09:51:24 -06:00
15 lines
451 B
Bash
15 lines
451 B
Bash
# Complete keyring backends for `keyring -b` from `keyring --list-backends`
|
|
# % keyring -b <TAB>
|
|
# keyring priority
|
|
# keyring.backends.chainer.ChainerBackend 10
|
|
# keyring.backends.fail.Keyring 0
|
|
# ... ...
|
|
|
|
backend_complete() {
|
|
local line
|
|
while read -r line; do
|
|
choices+=(${${line/ \(priority: /\\\\:}/)/})
|
|
done <<< "$($words[1] --list-backends)"
|
|
_arguments "*:keyring priority:(($choices))"
|
|
}
|