Skip to content

Commit

Permalink
Add bash completion for 'dnf module' (RhBug:1565614)
Browse files Browse the repository at this point in the history
  • Loading branch information
inknos committed Feb 19, 2020
1 parent 38a6467 commit 68eed53
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions etc/bash_completion.d/dnf
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ __dnf_secseverity_subcmds='Critical Important Low Moderate'

__dnf_clean_subcmds="all dbcache expire-cache metadata packages"

__dnf_module_subcmds="install remove update enable disable reset provides list info repoquery"

__dnf_repoquery_subcmds="
-a -f -i -l -s
--all --arch
Expand Down Expand Up @@ -304,6 +306,25 @@ _dnf()
complete_commands="timer"
;;

module)
extra_options="--enabled --disabled --installed --profile --available --all"
complete_commands="$__dnf_module_subcmds"
case $prev in
info)
extra_options="--profile"
;;
remove)
extra_options="--all"
;;
list)
extra_options="--all --enabled --disabled --installed"
;;
repoquery)
extra_options="--available --installed"
;;
esac
;;

provides)
;;

Expand Down

0 comments on commit 68eed53

Please sign in to comment.