Actions
Feature #6980
closedRFE Katello commands should use custom referenced resource formatters
Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Hammer
Target version:
-
Description
hammer-cli-foreman uses field type Reference [1] with custom formatters [2] to display information about associated resources. Katello should have similar formatter to make the output consistent and more condensed.
Original formatter in foreman outputs only names by default:
Users: 1) admin 2) test
and reflects option --show-ids:
Users: 1) admin (id: 1) 2) test (id: 83)
Katello's mutation should be able to display labels.
[1] https://github.com/theforeman/hammer-cli-foreman/blob/master/lib/hammer_cli_foreman/output/fields.rb#L8
[2] https://github.com/theforeman/hammer-cli-foreman/blob/master/lib/hammer_cli_foreman/output/formatters.rb#L32
Actions