Get printer from factory to retrieve handled resources

This commit is contained in:
Janet Kuo
2015-08-31 12:04:12 -07:00
parent 23740d9080
commit b673920ccf
5 changed files with 53 additions and 2 deletions

View File

@@ -46,6 +46,11 @@ func (s *SortingPrinter) PrintObj(obj runtime.Object, out io.Writer) error {
return s.Delegate.PrintObj(obj, out)
}
// TODO: implement HandledResources()
func (p *SortingPrinter) HandledResources() []string {
return []string{}
}
func (s *SortingPrinter) sortObj(obj runtime.Object) error {
objs, err := runtime.ExtractList(obj)
if err != nil {