code: func (g *ResourceCommand) Get(client auth.ClientI) error {
  	collection, err := g.getCollection(client)
  	if err != nil {
  		return trace.Wrap(err)
  	}
  
  	// Note that only YAML is officially supported. Support for text and JSON
  	// is experimental.
  	switch g.format {
  	case teleport.YAML:
  		return collection.writeYAML(os.Stdout)
  	case teleport.Text:
  		return collection.writeText(os.Stdout)
  	case teleport.JSON:
  		return collection.writeJSON(os.Stdout)
  	}
  	return trace.BadParameter("unsupported format")
  }
docs: // Get prints one or many resources of a certain type