Add options to pt-summary

Registered by babine

It would be nice to have more options to pt-summary to only get some parts of the output (without executing anything for the parts which are not relevant). This can be done using "grep" but it would be nice to be able to filter some information (to use pt-summary as a "light" inventory tool or such.

For example it would be nice to have something like :

# pt-summary --section=processor

# Processor ##################################################
  Processors | physical = 1, cores = 2, virtual = 2, hyperthreading = no
      Speeds | 2x2493.948
      Models | 2xPentium(R) Dual-Core CPU E5200 @ 2.50GHz
      Caches | 2x2048 KB

or even :

# pt-summary --section=Processor/Model

      Models | 2xPentium(R) Dual-Core CPU E5200 @ 2.50GHz

Blueprint information

Status:
Complete
Approver:
None
Priority:
Not
Drafter:
None
Direction:
Needs approval
Assignee:
None
Definition:
Superseded
Series goal:
None
Implementation:
Deferred
Milestone target:
None
Completed by
Daniel Nichter

Related branches

Sprints

Whiteboard

We probably won't do this. The effort required to do such a thing in Bash would probably outweigh the benefit given that the report isn't super long and grep and search is easy enough.

Setting definition to "Superseded" because Launchpad doesn't have something like "WontFix" for blueprints.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.