From 2819653a3a6c6f362d2dfc3aeb2ba164b049a74d Mon Sep 17 00:00:00 2001 From: Mario Limonciello Date: Wed, 22 Feb 2023 09:26:41 -0600 Subject: [PATCH] trivial: drop fwupdagent bash-completion fwupdagent is a symlink to fwupdmgr, all the commands are the same now --- data/bash-completion/fwupdagent | 40 -------------------------------- data/bash-completion/meson.build | 6 +---- 2 files changed, 1 insertion(+), 45 deletions(-) delete mode 100644 data/bash-completion/fwupdagent diff --git a/data/bash-completion/fwupdagent b/data/bash-completion/fwupdagent deleted file mode 100644 index 448d94b08..000000000 --- a/data/bash-completion/fwupdagent +++ /dev/null @@ -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 diff --git a/data/bash-completion/meson.build b/data/bash-completion/meson.build index d4d724294..9c5d7bfac 100644 --- a/data/bash-completion/meson.build +++ b/data/bash-completion/meson.build @@ -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