#compdef dnf5 # based on dnf-5.2.6.2 # utility functions _dnf5_helper() { _call_program specs $service "${(q-)@}" "${(q-)PREFIX}\*" \ -qC --assumeno --nogpgcheck 2>/dev/null command' '*:: :->cmd_args' && ret=0 case $state in command) _dnf5_commands && ret=0 ;; cmd_args) _dnf5_subcmds_opts && ret=0 ;; esac return ret } _dnf5 "$@"