Control the attributes which are returned from a list command
Users would like to pass in a set of attributes for an object, and use that control the output of the list commands. For example
hammer foo list --attribtues A,B,C,D --csv
foo1.A, foo1.B, foo1.C, foo1.D
foo2.A, foo2.B, foo2.C, foo2.D
#5 Updated by Tomáš Strachota almost 2 years ago
Hi Tom, it's great you have it working in csv already. I vote for keeping the issue in hammer core and implement it in generic manner so that other output adapters can use it and all plugins can take advantage of optional columns. Hopefully it will be possible to re-use code from your solution.
#7 Updated by Tomáš Strachota about 1 month ago
- Status changed from New to Duplicate
I'm sorry but this issue is a duplicate of https://projects.theforeman.org/issues/19135 that we already have an open PR for. I didn't realize this issue exist until you assigned it to yourself and I received a notification. I'm going to close this one in favor of 19135.