openflighthpc/flight-inventory

Support to List by Group

Closed this issue · 3 comments

Instead of, or as well as, allow for listing by group (with separate group headers and possibly inclusion of secondary groups [if any]).

Perhaps a by-group and by-type flag?

Heya, can you confirm what you mean by this please
As you may know there already is a --group switch on list (to go along with --type) which only returns assets specified group as either a primary or secondary group, however :

  • It doesn't distinguish between primary and secondary groups, is this something you want?
  • It doesn't separate by group header - it still separates by type
    Is what you're asking for a flag to the output, such that the results will be separated by which group they are in? If so how would we handle pri vs. sec groups in the output?

Also just to note, I'd be hesitant to change the default list output, as overware is already built on top of it.

While #139 did close this issue it is important to note there is currently no inclusion of secondary groups within the listing output. It is possible to list every asset within a secondary group but they will be output under their respective primary groups.

If we do want to adjust this in the future then please make a new issue covering that or reopen this issue.