Bug 878664 - [RFE] Enable tab completion of modules within rct
Summary: [RFE] Enable tab completion of modules within rct
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.10
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: 5.10
Assignee: Bryan Kearney
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel510 871581 rhsm-2013
TreeView+ depends on / blocked
 
Reported: 2012-11-20 21:46 UTC by Matt Reid
Modified: 2013-10-01 13:49 UTC (History)
6 users (show)

Fixed In Version: 1.8.2
Doc Type: Release Note
Doc Text:
The Red Hat Certificate Tool (rct) now support tab completion.
Clone Of:
Environment:
Last Closed: 2013-10-01 13:49:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Matt Reid 2012-11-20 21:46:57 UTC
Description of problem:
It would be nice if rct let you tab complete stat-cert and cat-cert after typing "rct ". 

Hitting tab twice after typing "rct " just shows current directory files.

Feel free to push this if its too late to include this, I'm hoping its easy-peasy.

Version-Release number of selected component (if applicable):
subscription-manager-1.8.0-1

Additional info:

Comment 2 Bryan Kearney 2012-12-07 17:03:52 UTC
commit d7fdb3fecb528dc36073925e9fad872a1787ef85
Author: Bryan Kearney <bkearney>
Date:   Thu Dec 6 15:55:35 2012 -0500

    878664: Add bash completion script for rct

Comment 3 Bryan Kearney 2013-02-08 17:18:30 UTC
Fixed in the 1.8.2 version of subscription-manager or python-rhsm

Comment 4 Shwetha Kallesh 2013-02-19 09:49:41 UTC
Failed!! 
Moving back to new

Version:
[root@rhel7 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.7.24-1
subscription-manager: 1.8.2-1.el7
python-rhsm: 1.8.2-1.el7

Comment 5 Bryan Kearney 2013-02-22 19:47:06 UTC
https://github.com/candlepin/subscription-manager/pull/513

BTW.. what exactly failed?

Comment 6 Bryan Kearney 2013-03-01 22:27:54 UTC
commit a67331cce99e9efdaf718a1ef6d6d05a7158e097
Author: Bryan Kearney <bkearney>
Date:   Fri Feb 22 14:42:54 2013 -0500

    878664: Add filename support to the bash completion for the rct tool.

Comment 8 Sharath Dwaral 2013-03-13 14:45:34 UTC
Please ignore Comment 7

Got the lates packages installed and checked it again and it works fine.

# rpm -qa | egrep "subscription-manager|python-rhsm"
subscription-manager-firstboot-1.8.4-1.el7.x86_64
python-rhsm-1.8.7-1.el7.x86_64
subscription-manager-1.8.4-1.el7.x86_64
subscription-manager-debuginfo-1.8.4-1.el7.x86_64
subscription-manager-gui-1.8.4-1.el7.x86_64
subscription-manager-migration-1.8.4-1.el7.x86_64

# rpm -qa | egrep bash-completion
bash-completion-2.0-2.el7.noarch

# rct                     <===  tabbing twwice
cat-cert       cat-manifest   dump-manifest  stat-cert   

VERIFIED

Comment 9 Li Bin Liu 2013-07-22 11:46:12 UTC
Hi Bryan,

I saw you had added this bug into rhel 5.10 blocker and this bug is categorized into the rhel5.10, and this bug was verified against rhel7 and moved into the status of VERIFIED, but from our testing result with the rhel5.10 latest build snapshot1.0, this bug still happened, so do you think we should re-open this bug or file a new bug to track this issue in rhel 5.10?

Thanks and Regards,
Libin

Comment 10 Bryan Kearney 2013-07-22 11:54:46 UTC
Libin:

For bugs which are non critical, and appear to be due to the differences in 5.10 and later versions (as this one is) my plan is to move the bugs to the later releases. So, I would say lets not worry about this for 5.10.

Comment 11 John Sefler 2013-07-22 14:50:04 UTC
(In reply to Li Bin Liu from comment #9)
> Hi Bryan,
> 
> I saw you had added this bug into rhel 5.10 blocker and this bug is
> categorized into the rhel5.10, and this bug was verified against rhel7 and
> moved into the status of VERIFIED, but from our testing result with the
> rhel5.10 latest build snapshot1.0, this bug still happened, so do you think
> we should re-open this bug or file a new bug to track this issue in rhel
> 5.10?
> 
> Thanks and Regards,
> Libin

In order to see tab completion work on the subscription-manager modules, you need to install the bash-completion package built for RHEL5.  Try this...
http://dl.fedoraproject.org/pub/epel/5/x86_64/repoview/bash-completion.html


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