mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-06 09:00:55 +00:00
trivial: drop fwupdagent bash-completion
fwupdagent is a symlink to fwupdmgr, all the commands are the same now
This commit is contained in:
parent
19612f059a
commit
2819653a3a
@ -1,40 +0,0 @@
|
||||
_fwupdagent_cmd_list=(
|
||||
'get-devices'
|
||||
'get-updates'
|
||||
'get-upgrades'
|
||||
'security'
|
||||
)
|
||||
|
||||
_fwupdagent_opts=(
|
||||
'--verbose'
|
||||
)
|
||||
|
||||
_show_modifiers()
|
||||
{
|
||||
COMPREPLY+=( $(compgen -W '${_fwupdagent_opts[@]}' -- "$cur") )
|
||||
}
|
||||
|
||||
_fwupdagent()
|
||||
{
|
||||
local cur prev command arg args
|
||||
COMPREPLY=()
|
||||
_get_comp_words_by_ref cur prev
|
||||
_get_first_arg
|
||||
_count_args
|
||||
|
||||
case $arg in
|
||||
*)
|
||||
#find first command
|
||||
if [[ "$args" = "1" ]]; then
|
||||
COMPREPLY=( $(compgen -W '${_fwupdagent_cmd_list[@]}' -- "$cur") )
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
#modifiers
|
||||
_show_modifiers
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
complete -F _fwupdagent fwupdagent
|
@ -15,11 +15,7 @@ if bashcomp.found()
|
||||
)
|
||||
|
||||
if build_daemon
|
||||
binaries = ['fwupdmgr']
|
||||
if get_option('compat_cli')
|
||||
binaries += ['fwupdagent']
|
||||
endif
|
||||
install_data(binaries,
|
||||
install_data(['fwupdmgr'],
|
||||
install_dir: completions_dir,
|
||||
)
|
||||
endif # build_daemon
|
||||
|
Loading…
Reference in New Issue
Block a user