-
Notifications
You must be signed in to change notification settings - Fork 86
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
[dnf5] Implement new argument "--dump-variables" #875
[dnf5] Implement new argument "--dump-variables" #875
Conversation
Just an idea - would it make sense to implement this as a new command (e.g. Copr plugin has the same subcommand used for similar purpose. |
506956b
to
cde51fb
Compare
If dnf5 is run with this argument, variable values are added to standard output. The old DNF4 supports this argument only with the `config-manager` plugin. If the user wants to know the values of the variables with which a certain command will run, he must first use `config-manager` and then run the desired command with the same settings (same environment and configuration files) and hope that nothing changed in between (e.g. thanks to a plugin). This implements part of the functionality of the dnf4 config-manager plugin, but for general use.
cde51fb
to
9a92f14
Compare
Rebased to resolve conflicts. |
There is missing a documentation in doc/dnf5.8.rst. |
I somehow find it quite obtrusive that "./dnf5/dnf5 --dump-variables" does not work also alone:
But maybe that's on purpose. |
@ppisar Edit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Documentation and standalone invocation works now.
20a2a69
If dnf5 is run with this argument, variable values are added to standard output.
The old DNF4 supports this argument only with the
config-manager
plugin. If the user wants to know the values of the variables with which a certain command will run, he must first useconfig-manager
and then run the desired command with the same settings (same environment and configuration files) and hope that nothing changed in between (e.g. thanks to a plugin).In other words, this PR implements part of the functionality of the dnf4
config-manager
plugin, but for general use.Related to: #405