mirror of
https://gitlab.gnome.org/GNOME/libsecret.git
synced 2025-01-03 02:28:53 +00:00
20 lines
483 B
Bash
20 lines
483 B
Bash
# secret-tool(8) completion
|
|
|
|
_secret-tool()
|
|
{
|
|
local cur prev word cword
|
|
_init_completion || return
|
|
|
|
if [[ $cur == -* ]]; then
|
|
local opts="--help --verbose -q --quiet" # not sure about the opts
|
|
COMPREPLY=( $(compgen -W "$opts" -- "$cur") )
|
|
return
|
|
elif [[ $cword -eq 1 ]]; then
|
|
local commands='store lookup clear search'
|
|
COMPREPLY=( $(compgen -W "$commands" -- "$cur") )
|
|
fi
|
|
} &&
|
|
complete -F _secret-tool secret-tool
|
|
|
|
# ex: filetype=sh
|