mirror of
https://gitlab.gnome.org/GNOME/libsecret.git
synced 2024-12-22 12:48:51 +00:00
8503902759
Although it is a comment, it affects the reading and overall code quality. Related to: https://gitlab.gnome.org/GNOME/libsecret/-/merge_requests/70
20 lines
457 B
Bash
20 lines
457 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"
|
|
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
|