Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dnf completions lack config-manager subcommand #10226

Open
saber716rus opened this issue Jan 16, 2024 · 5 comments
Open

dnf completions lack config-manager subcommand #10226

saber716rus opened this issue Jan 16, 2024 · 5 comments

Comments

@saber716rus
Copy link

saber716rus commented Jan 16, 2024

YOUR TEXT HERE
saber716rus@rosa-cs4cps ~> fish --version
echo $version
fish, version 3.7.0
3.7.0
saber716rus@rosa-cs4cps ~>

It works by automatically adding, via tabulation, the parameters of its command itself. If you use the config-manager command, then there will be no search for its parameters for automatic substitution, or when searching for packages after the install or delete command, etc.

saber716rus@rosa-cs4cps ~> rpm -qa | grep dnf
dnf-conf-4.14.0-3.noarch
lib64dnf2-0.70.0-2.x86_64
python3-libdnf-0.70.0-2.x86_64
python3-dnf-4.14.0-3.noarch
python3-dnf-plugins-core-4.3.1-1.noarch
dnf-plugins-core-4.3.1-1.noarch
dnf-yum-4.14.0-3.noarch
dnf-4.14.0-3.noarch
dnf-URPM-2-0.git20180418.2757451.4.noarch
dnfdaemon-0.3.22-4.noarch
python3-dnfdaemon-0.3.22-4.noarch
dnfdragora-qt-2.1.5-1.noarch
dnfdragora-2.1.5-1.noarch
dnfdragora-common-2.1.5-1.noarch
dnf-utils-4.3.1-1.noarch
saber716rus@rosa-cs4cps ~>

@faho
Copy link
Member

faho commented Jan 16, 2024

Sorry, I do not understand what exactly isn't working here.

If you use the config-manager command

What is "the config-manager command"?

@saber716rus
Copy link
Author

Sorry, I do not understand what exactly isn't working here.

If you use the config-manager command

What is "the config-manager command"?

`saber716rus@rosa-cs4cps ~ [2]> sudo dnf config-manager --help
usage: dnf config-manager [-c [config file]] [-q] [-v] [--version] [--installroot [path]] [--nodocs] [--noplugins] [--enableplugin [plugin]] [--disableplugin [plugin]] [--releasever RELEASEVER]
[--setopt SETOPTS] [--skip-broken] [-h] [--allowerasing] [-b | --nobest] [-C] [-R [minutes]] [-d [debug level]] [--debugsolver] [--showduplicates] [-e ERRORLEVEL] [--obsoletes]
[--rpmverbosity [debug level name]] [-y] [--assumeno] [--enablerepo [repo]] [--disablerepo [repo] | --repo [repo]] [--enable | --disable] [-x [package]] [--disableexcludes [repo]]
[--repofrompath [repo,path]] [--noautoremove] [--nogpgcheck] [--color COLOR] [--refresh] [-4] [-6] [--destdir DESTDIR] [--downloadonly] [--comment COMMENT] [--bugfix] [--enhancement]
[--newpackage] [--security] [--advisory ADVISORY] [--bz BUGZILLA] [--cve CVES] [--sec-severity {Critical,Important,Moderate,Low}] [--forcearch ARCH] [--save] [--add-repo URL] [--dump]
[--dump-variables] [--set-enabled | --set-disabled]
[repo ...]

manage configuration settings and dnf repositories

General DNF parameters:
-c [config file], --config [config file]
the location of the configuration file
is q, --quiet to work without displaying messages
-v, --verbose describe the actions in detail
--version show the DNF version and shut down
--installroot [path] setting up the installation root directory
--nodocs do not install documentation
--noplugins disable all modules
--enableplugin [plugin]
enable modules by name
--disableplugin [plugin]
disable modules by name
--releasever RELEASEVER
replace the value of $releasever in configuration files and repositories
--setopt SETOPTS set arbitrary repository settings and parameters
--skip-broken resolve dependency issues by skipping packages
-h, --help, --help-cmd
show help with the
--allowerasing command to allow the removal of installed packages to resolve dependencies
-b, --best try to use the most appropriate package versions in transactions.
--nobest not to limit the transaction to the best candidate
-C, --cacheonly take it completely from the system cache, do not update it
-R [minutes], --randomwait [minutes]
maximum command waiting time
-d [debug level], --debuglevel [debug level]
debugging message level
--debugsolver saves detailed results in files
--showduplicates show packages repeated in repositories for list/search commands
-e ERRORLEVEL, --errorlevel ERRORLEVEL
error message level
--obsolete includes legacy dnf processing logic to update or display features that the package replaces for info, list, and repoquery
--rpmverbosity [debug level name]
the level of debugging messages for rpm
is y, --assumes automatically answer affirmatively to all questions
--assumes automatically answer negatively to all questions
--enablerepo [repo] Temporarily enable repositories for the current dnf command. Accepts an identifier, a comma-separated list of identifiers, or a set of identifiers. This parameter can be specified
several times.
--disablerepo [repo] Temporarily disable active repositories for the current dnf command. Accepts an identifier, a comma-separated list of identifiers, or a set of identifiers. This parameter can be
specify several times, but it is mutually exclusive with `--repo'.
--repo [repo], --repoid [repo]
enable only certain repositories by ID or mask, you can specify several times
--enable connect repositories with the config-manager command (automatic saving)
--disable disable repositories with the config-manager command (automatic saving)
-x [package], --exclude [package], --excludepkgs [package]
exclude packages by name or mask
--disableexcludes [repo], --disableexcludepkgs [repo]
disable excludepkgs
--repofrompath [repo,path]
the label and the path to the additional repository (the same path as in baseurl) can be specified several times.
--noautoremove prohibit the removal of dependencies that are no longer in use
--nogpgcheck disable gpg signature verification (if RPM policy allows)
--color COLOR whether to use color schemes
--refresh set metadata as expired before running the command
-4 permission only to IPv4 addresses
-6 permission only to IPv6 addresses
--destdir DESTDIR, --downloaddir DESTDIR
set a directory to copy packages
to --downloadonly only download packages
--comment COMMENT add a comment to the transaction
--bugfix Include bug
fix packages in updates --enhancement Include packages related to improvements
in updates --newpackage Include packages related to newpackage
in updates --security Include packages related to security
in updates --advisory ADVISORY, --advisory ADVISORY
Include in the updates the packages required for fixes in connection with this recommendation
--bz BUGZILLA, --bzs BUGZILLA
Include in the updates the packages required to fix this bug from the bugzilla
--cve CVES, --cves CVES
Include in updates the packages required to fix this vulnerability CVE
--sec-severity {Critical,Important,Moderate,Low}, --secseverity {Critical,Important,Moderate,Low}
Include security-related packages with the specified risk level in updates
--forcearch ARCH To force the use of architecture

Config-manager command-specific options:
--save save current parameters (good with --setopt)
--add-repo URL add (and connect) repository from specified file or URL
--dump output current configuration parameters to stdout
--dump-variables output variable values to stdout
--set-enabled enable repositories (saved automatically)
--set-disabled disable repositories (saved automatically)

repo repository for changes
saber716rus@rosa-cs4cps ~>`

@faho
Copy link
Member

faho commented Jan 16, 2024

So your issue, if I understand you correctly, is that our dnf completions do not know the config-manager subcommand, and so completing anything after dnf config-manager doesn't work?

@saber716rus
Copy link
Author

after filling in the dnf config-manager, install, remove, etc. commands, then nothing just happens. Although if config-manager is written, then when you click on the tab, the parameters should appear or after the dnf install, remove command, a list of packages found in the repository should be displayed or if part of the package name has already been written, as in the case of apt. For example, dnf install tel and when you click on the tab, there should be options for packages starting with "tel" or completely substitute if 1 is the only package starting with "tel" and there are no more other packages in the repository. Which were previously cached by dnf.

@faho faho changed the title Auto-completion with the dnf package manager does not fully work dnf completions lack config-manager subcommand Jan 18, 2024
@faho faho added this to the fish-future milestone Jan 18, 2024
@saber716rus
Copy link
Author

Also, with the dnf install or remove or search commands and adding some letter. For example, if you typed "tel" after this command, then fish after tabulation, then you should find all packages starting with "tel" in the cache. As in the case of dnf info
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants