This is a POC for how we can separate collection of stats from an apply/destroy operation from the printers. It splits out the code used for this within the BaseListPrinter and make the Stats type available for other use-cases.
It makes it available in the stats.Collector, which can be used as in this example:
Needs approval from an approver in each of these files:
- ~~[OWNERS](https://github.com/kubernetes-sigs/cli-utils/blob/master/OWNERS)~~ [mortent]
Approvers can indicate their approval by writing `/approve` in a comment
Approvers can cancel approval by writing `/approve cancel` in a comment
This is a POC for how we can separate collection of stats from an apply/destroy operation from the printers. It splits out the code used for this within the
BaseListPrinter
and make theStats
type available for other use-cases. It makes it available in thestats.Collector
, which can be used as in this example: