Feature #18097

As a user, I want to name :export: config sections for convenient use on the cli

Added by Thomas McKay 5 months ago.

Status:New
Priority:Normal
Assigned To:Thomas McKay
Category:core
Target version:Katello - Team Tom - backlog
Difficulty: Pull request:
Bugzilla link:
Story points-
Velocity based estimate-

Description

For example, I have a custom export defined for content-hosts

:csv:
  :enable_module: true
  :columns:
    :content-hosts:
      :define:
        - :name: Subscription Status
          :json:
            - subscription_status_label
        - :name: Last Checkin
          :json:
            - subscription_facet_attributes
            - last_checkin
      :export:
        - Name
        - Organization
        - Subscription Status
        - Last Checkin

Currently the above config means that --export will always export just those four columns.

Instead, let me add a :name: to the :export: section that may be referred to. Something like this if I had included ":name: substatus" in the conf

hammer csv content-hosts --export --export-name substatus

Also available in: Atom PDF