From 920e89e2acd788d5d858de0458d78acbcbd89d46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marius=20M=C3=BCller?= <49639740+MarJMue@users.noreply.github.com> Date: Wed, 9 Feb 2022 11:31:50 +0100 Subject: [PATCH] Extend dnf completions to include syntax for the dnf-plugin system-upgrade --- share/completions/dnf.fish | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/share/completions/dnf.fish b/share/completions/dnf.fish index aaae9d742..2f5bd879c 100644 --- a/share/completions/dnf.fish +++ b/share/completions/dnf.fish @@ -160,6 +160,22 @@ complete -c dnf -n "__fish_seen_subcommand_from module; and __fish_seen_subcomma complete -c dnf -n "__fish_seen_subcommand_from module" -xa info -d "Print module information" complete -c dnf -n "__fish_seen_subcommand_from module; and __fish_seen_subcommand_from info" -l profile -d "Print module profiles information" +# Offline-distrosync +complete -c dnf -n __fish_use_subcommand -xa offline-distrosync -d "Synchronizes packages to match the latest" +complete -c dnf -n "__fish_seen_subcommand_from offline-distrosync" -xa download -d "Download updates for offline upgrade" +complete -c dnf -n "__fish_seen_subcommand_from offline-distrosync" -xa clean -d "Remove cached packages" +complete -c dnf -n "__fish_seen_subcommand_from offline-distrosync" -xa reboot -d "Reboot and install packages" +complete -c dnf -n "__fish_seen_subcommand_from offline-distrosync" -xa upgrade -d "Install cached packages without reboot" +complete -c dnf -n "__fish_seen_subcommand_from offline-distrosync" -xa log -d "Show logs of upgrade attempts" + +# Offline-upgrade +complete -c dnf -n __fish_use_subcommand -xa offline-upgrade -d "Prepare offline upgrade of the system" +complete -c dnf -n "__fish_seen_subcommand_from offline-upgrade" -xa download -d "Download updates for offline upgrade" +complete -c dnf -n "__fish_seen_subcommand_from offline-upgrade" -xa clean -d "Remove cached packages" +complete -c dnf -n "__fish_seen_subcommand_from offline-upgrade" -xa reboot -d "Reboot and install packages" +complete -c dnf -n "__fish_seen_subcommand_from offline-upgrade" -xa upgrade -d "Install cached packages without reboot" +complete -c dnf -n "__fish_seen_subcommand_from offline-upgrade" -xa log -d "Show logs of upgrade attempts" + # Provides complete -c dnf -n __fish_use_subcommand -xa provides -d "Finds packages providing the given command" @@ -217,6 +233,14 @@ complete -c dnf -n "__fish_seen_subcommand_from repoquery" -l alldeps complete -c dnf -n "__fish_seen_subcommand_from repoquery" -l exactdeps complete -c dnf -n "__fish_seen_subcommand_from repoquery" -l srpm +# System-upgrade +complete -c dnf -n __fish_use_subcommand -xa system-upgrade -d "Prepare major version upgrade of the system" +complete -c dnf -n "__fish_seen_subcommand_from system-upgrade" -xa download -d "Download updates for offline upgrade" +complete -c dnf -n "__fish_seen_subcommand_from system-upgrade" -xa clean -d "Remove cached packages" +complete -c dnf -n "__fish_seen_subcommand_from system-upgrade" -xa reboot -d "Reboot and install packages" +complete -c dnf -n "__fish_seen_subcommand_from system-upgrade" -xa upgrade -d "Install cached packages without reboot" +complete -c dnf -n "__fish_seen_subcommand_from system-upgrade" -xa log -d "Show logs of upgrade attempts" + # Query options complete -c dnf -n "__fish_seen_subcommand_from repoquery" -s i -l info -d "Show detailed information about the package" complete -c dnf -n "__fish_seen_subcommand_from repoquery" -s l -l list -d "Show the list of files in the package"