dnf: Fix auto completions not working after specifying a package

Closes #12830

Part of #12840
This commit is contained in:
Khnome
2026-06-26 12:06:04 +03:00
committed by Johannes Altmanninger
parent 53b185e102
commit 77357c4e37

View File

@@ -372,55 +372,53 @@ if test -f /etc/dnf/plugins/versionlock.conf
end
# Options:
# Using __fish_no_arguments here so that users are not completely overloaded with
# available options when using subcommands (e.g. repoquery) (40 vs 100ish)
complete -c dnf -n __fish_no_arguments -s 4 -d "Use IPv4 only"
complete -c dnf -n __fish_no_arguments -s 6 -d "Use IPv6 only"
complete -c dnf -n __fish_no_arguments -l advisory -l advisories -d "Include packages corresponding to the advisory ID"
complete -c dnf -n __fish_no_arguments -l allowerasing -d "Allow erasing of installed packages to resolve dependencies"
complete -c dnf -n __fish_no_arguments -l assumeno -d "Answer no for all questions"
complete -c dnf -n __fish_no_arguments -s b -l best -d "Try the best available package versions in transactions"
complete -c dnf -n __fish_no_arguments -l bugfix -d "Include packages that fix a bugfix issue"
complete -c dnf -n __fish_no_arguments -l bz -l bzs -d "Include packages that fix a Bugzilla ID"
complete -c dnf -n __fish_no_arguments -s C -l cacheonly -d "Run entirely from system cache"
complete -c dnf -n __fish_no_arguments -l color -xa "always never auto" -d "Control whether color is used"
complete -c dnf -n __fish_no_arguments -s c -l config -d "Configuration file location"
complete -c dnf -n __fish_no_arguments -l cve -l cves -d "Include packages that fix a CVE"
complete -c dnf -n __fish_no_arguments -s d -l debuglevel -d "Debugging output level"
complete -c dnf -n __fish_no_arguments -l debugsolver -d "Dump dependency solver debugging info"
complete -c dnf -n __fish_no_arguments -l disableexcludes -l disableexcludepkgs -d "Disable excludes"
complete -c dnf -n __fish_no_arguments -l disable -l set-disabled -d "Disable specified repositories"
complete -c dnf -n __fish_no_arguments -l disableplugin -d "Disable the listed plugins specified"
complete -c dnf -n __fish_no_arguments -l disablerepo -d "Disable specified repositories"
complete -c dnf -n __fish_no_arguments -l downloaddir -l destdir -d "Change downloaded packages to provided directory"
complete -c dnf -n __fish_no_arguments -l downloadonly -d "Download packages without performing any transaction"
complete -c dnf -n __fish_no_arguments -l enable -l set-enabled -d "Enable specified repositories"
complete -c dnf -n __fish_no_arguments -l enableplugin -d "Enable the listed plugins"
complete -c dnf -n __fish_no_arguments -l enablerepo -d "Enable additional repositories"
complete -c dnf -n __fish_no_arguments -l enhancement -d "Include enhancement relevant packages"
complete -c dnf -n __fish_no_arguments -s x -l exclude -d "Exclude packages specified"
complete -c dnf -n __fish_no_arguments -l forcearch -d "Force the use of the specified architecture"
complete -c dnf -n __fish_no_arguments -s h -l help -l help-i -d "Show the help"
complete -c dnf -n __fish_no_arguments -l installroot -d "Specifies an alternative installroot"
complete -c dnf -n __fish_no_arguments -l newpackage -d "Include newpackage relevant packages"
complete -c dnf -n __fish_no_arguments -l noautoremove -d "Disable autoremove"
complete -c dnf -n __fish_no_arguments -l nobest -d "Set best option to False"
complete -c dnf -n __fish_no_arguments -l nodocs -d "Do not install documentation"
complete -c dnf -n __fish_no_arguments -l nogpgcheck -d "Skip checking GPG signatures on packages"
complete -c dnf -n __fish_no_arguments -l noplugins -d "Disable all plugins"
complete -c dnf -n __fish_no_arguments -l obsoletes -d "Enables obsoletes processing logic"
complete -c dnf -n __fish_no_arguments -s q -l quiet -d "Quiet mode"
complete -c dnf -n __fish_no_arguments -s R -l randomwait -d "Maximum command wait time"
complete -c dnf -n __fish_no_arguments -l refresh -d "Set metadata as expired before running the command"
complete -c dnf -n __fish_no_arguments -l releasever -d "Configure the distribution release"
complete -c dnf -n __fish_no_arguments -l repofrompath -d "Specify repository to add to the repositories for this query"
complete -c dnf -n __fish_no_arguments -l repo -l repoid -d "Enable just specific repositories by an id or a glob"
complete -c dnf -n __fish_no_arguments -l rpmverbosity -d "RPM debug scriptlet output level"
complete -c dnf -n __fish_no_arguments -l sec-severity -l secseverity -d "Includes packages that provide a fix for an issue of the specified severity"
complete -c dnf -n __fish_no_arguments -l security -d "Includes packages that provide a fix for a security issue"
complete -c dnf -n __fish_no_arguments -l setopt -d "Override a configuration option"
complete -c dnf -n __fish_no_arguments -l skip-broken -d "Skips broken packages"
complete -c dnf -n __fish_no_arguments -l showduplicates -d "Shows duplicate packages"
complete -c dnf -n __fish_no_arguments -s v -l verbose -d "Verbose mode"
complete -c dnf -n __fish_no_arguments -l version -d "Shows DNF version and exit"
complete -c dnf -n __fish_no_arguments -s y -l assumeyes -d "Answer yes for all questions"
complete -c dnf -s 4 -d "Use IPv4 only"
complete -c dnf -s 6 -d "Use IPv6 only"
complete -c dnf -l advisory -l advisories -d "Include packages corresponding to the advisory ID"
complete -c dnf -l allowerasing -d "Allow erasing of installed packages to resolve dependencies"
complete -c dnf -l assumeno -d "Answer no for all questions"
complete -c dnf -s b -l best -d "Try the best available package versions in transactions"
complete -c dnf -l bugfix -d "Include packages that fix a bugfix issue"
complete -c dnf -l bz -l bzs -d "Include packages that fix a Bugzilla ID"
complete -c dnf -s C -l cacheonly -d "Run entirely from system cache"
complete -c dnf -l color -xa "always never auto" -d "Control whether color is used"
complete -c dnf -s c -l config -d "Configuration file location"
complete -c dnf -l cve -l cves -d "Include packages that fix a CVE"
complete -c dnf -s d -l debuglevel -d "Debugging output level"
complete -c dnf -l debugsolver -d "Dump dependency solver debugging info"
complete -c dnf -l disableexcludes -l disableexcludepkgs -d "Disable excludes"
complete -c dnf -l disable -l set-disabled -d "Disable specified repositories"
complete -c dnf -l disableplugin -d "Disable the listed plugins specified"
complete -c dnf -l disablerepo -d "Disable specified repositories"
complete -c dnf -l downloaddir -l destdir -d "Change downloaded packages to provided directory"
complete -c dnf -l downloadonly -d "Download packages without performing any transaction"
complete -c dnf -l enable -l set-enabled -d "Enable specified repositories"
complete -c dnf -l enableplugin -d "Enable the listed plugins"
complete -c dnf -l enablerepo -d "Enable additional repositories"
complete -c dnf -l enhancement -d "Include enhancement relevant packages"
complete -c dnf -s x -l exclude -d "Exclude packages specified"
complete -c dnf -l forcearch -d "Force the use of the specified architecture"
complete -c dnf -s h -l help -l help-i -d "Show the help"
complete -c dnf -l installroot -d "Specifies an alternative installroot"
complete -c dnf -l newpackage -d "Include newpackage relevant packages"
complete -c dnf -l noautoremove -d "Disable autoremove"
complete -c dnf -l nobest -d "Set best option to False"
complete -c dnf -l nodocs -d "Do not install documentation"
complete -c dnf -l nogpgcheck -d "Skip checking GPG signatures on packages"
complete -c dnf -l noplugins -d "Disable all plugins"
complete -c dnf -l obsoletes -d "Enables obsoletes processing logic"
complete -c dnf -s q -l quiet -d "Quiet mode"
complete -c dnf -s R -l randomwait -d "Maximum command wait time"
complete -c dnf -l refresh -d "Set metadata as expired before running the command"
complete -c dnf -l releasever -d "Configure the distribution release"
complete -c dnf -l repofrompath -d "Specify repository to add to the repositories for this query"
complete -c dnf -l repo -l repoid -d "Enable just specific repositories by an id or a glob"
complete -c dnf -l rpmverbosity -d "RPM debug scriptlet output level"
complete -c dnf -l sec-severity -l secseverity -d "Includes packages that provide a fix for an issue of the specified severity"
complete -c dnf -l security -d "Includes packages that provide a fix for a security issue"
complete -c dnf -l setopt -d "Override a configuration option"
complete -c dnf -l skip-broken -d "Skips broken packages"
complete -c dnf -l showduplicates -d "Shows duplicate packages"
complete -c dnf -s v -l verbose -d "Verbose mode"
complete -c dnf -l version -d "Shows DNF version and exit"
complete -c dnf -s y -l assumeyes -d "Answer yes for all questions"