Merge pull request #13047 from JanetKuo/kubectl-label-bash-completion

Enable kubectl label resource type bash completion
This commit is contained in:
Abhi Shah
2015-09-02 15:16:54 -07:00
5 changed files with 69 additions and 0 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 {