trivial: drop fwupdagent bash-completion

fwupdagent is a symlink to fwupdmgr, all the commands are the same now
This commit is contained in:
Mario Limonciello 2023-02-22 09:26:41 -06:00
parent 19612f059a
commit 2819653a3a
2 changed files with 1 additions and 45 deletions

View File

@ -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

View File

@ -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