Bug 1087928 - RFE: dnf help does not list commands implemented by plugins
Summary: RFE: dnf help does not list commands implemented by plugins
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tim Lauridsen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-15 15:24 UTC by Honza Horak
Modified: 2014-06-02 07:50 UTC (History)
5 users (show)

Fixed In Version: 0.5.2 / 0.0.8
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-02 07:50:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Honza Horak 2014-04-15 15:24:13 UTC
Description of problem:
`dnf help` does not list commands implemented by plugins

Version-Release number of selected component (if applicable):
dnf-0.4.16-2.fc20.noarch

Steps to Reproduce:
1. dnf install dnf-plugins-core
2. dnf help

Actual results:
usage: dnf [options] COMMAND

List of Commands:

check-update   Check for available package upgrades
clean          Remove cached data
distribution-synchronization Synchronize installed packages to the latest available versions
downgrade      downgrade a package
erase          Remove a package or packages from your system
group          Display, or use, the groups information
help           Display a helpful usage message
history        Display, or use, the transaction history
info           Display details about a package or group of packages
install        Install a package or packages on your system
list           List a package or groups of packages
makecache      Generate the metadata cache
provides       Find what package provides the given value
reinstall      reinstall a package
repolist       Display the configured software repositories
repository-packages Run commands on top of all packages in given repository
search         Search package details for the given string
upgrade        Upgrade a package or packages on your system
upgrade-to     Upgrade a package on your system to the specified version

^ `copr` not mentioned even though it works

Expected results:
copr mentioned in the help

Comment 1 Ales Kozumplik 2014-04-16 09:15:57 UTC
moving to Tim who fixed this on the master branch.

Comment 2 Tim Lauridsen 2014-04-16 09:31:11 UTC
fixed in this commit.

https://github.com/akozumpl/dnf/commit/00a0d776709fe3dcf74f3759f8d995b3baf21221

You can check it out in the dnf nightly build:
http://jenkins.cloud.fedoraproject.org/job/DNF/lastSuccessfulBuild/artifact/

Comment 3 Honza Horak 2014-04-16 13:43:50 UTC
Hopefully I was not too quick, but with:
 dnf-0.5.0-99.644.20140415git7e400a3.fc20.noarch.rpm
 dnf-plugins-core-0.0.6-99.644.20140415git606b19d.fc20.noarch.rpm
it is NOT totally OK.

The list itself works fine, but help for commands provided by plugins does not.

Old version:
  shell #> dnf help copr
  copr 
  enable name/project [chroot]
  disable name/project
  list name

  Interact with Copr repositories. Example:
    copr enable rhscl/perl516 epel-6-x86_64
    copr enable ignatenkobrain/ocltoys
    copr disable rhscl/perl516
    copr list ignatenkobrain

New version:
  shell #> dnf help copr
  copr 



^ more empty lines but no hepl printed.

Comment 4 Tim Lauridsen 2014-04-16 15:40:21 UTC
There is some changes to how plugins should use usage & summary strings, 
copr has some issue, but it should be clean up in next dnf-plugins-core release.

Comment 5 Tim Lauridsen 2014-06-02 07:50:50 UTC
This is fixed in dnf-0.5.2 / dnf-plugins-core-0.0.8 available in fedora updates


Note You need to log in before you can comment on or make changes to this bug.