Bug 795520 - Add support for --noheading option to suppress all output headings for easier CLI parsing
Summary: Add support for --noheading option to suppress all output headings for easier...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: katello-agent
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
low
low vote
Target Milestone: Unspecified
Assignee: Lukas Zapletal
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-20 19:01 UTC by James Laska
Modified: 2019-09-26 13:31 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-02 11:28:15 UTC
Target Upstream Version:


Attachments (Terms of Use)
0001-795520-Add-support-for-noheading-option.patch (4.50 KB, patch)
2012-02-20 19:03 UTC, James Laska
no flags Details | Diff

Description James Laska 2012-02-20 19:01:57 UTC
Description of problem:

The katello command always emits the headings which makes parsing command output slightly more annoying.  It would be nice for katello sub-commands to support a --noheading option to suppress all column headers and row separators.

Version-Release number of selected component (if applicable):
 * katello-cli-0.1.54-2.el6.noarch
 * katello-0.1.238-4.el6.noarch

How reproducible:
100%

Steps to Reproduce:
1. katello -u admin -p admin product list --noheading
  
Actual results:

> --------------------------------------------------------------------------------
>            Product List For Organization redhat, Environment 'Stage'
> 
>  Id              Name                              Provider Id   Provider Name   Sync Plan Name   GPG key  
> --------------------------------------------------------------------------------
>  69              Red Hat Enterprise Linux Server   2             Red Hat         None                      
>  1329490964767   Tools                             3             CloudForms      None                      
>  1329490960529   System Engine                     3             CloudForms      None                      
>  1329490955541   Cloud Engine                      3             CloudForms      None                      

Expected results:

>  69              Red Hat Enterprise Linux Server   2             Red Hat         None                      
>  1329490964767   Tools                             3             CloudForms      None                      
>  1329490960529   System Engine                     3             CloudForms      None                      
>  1329490955541   Cloud Engine                      3             CloudForms      None

Comment 1 James Laska 2012-02-20 19:03:07 UTC
Created attachment 564504 [details]
0001-795520-Add-support-for-noheading-option.patch

Tested proposed patch

Comment 3 Lukas Zapletal 2012-08-02 10:02:24 UTC
Nice patch, going to test.

Comment 4 Lukas Zapletal 2012-08-02 11:28:15 UTC
Had to rewrite the patch, there has been big refactoring in this area. Also added man page. Thanks!

https://github.com/Katello/katello/pull/417


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