func TagImages(p *models.Tag, paths []string, aliases []string, rw models.ImageReaderWriter, cache *match.Cache) error {
	t := getTagTaggers(p, aliases, cache)

	for _, tt := range t {
		if err := tt.tagImages(paths, rw, func(subjectID, otherID int) (bool, error) {
			return image.AddTag(rw, otherID, subjectID)
		}); err != nil {
			return err
		}
	}
	return nil
}
// TagImages searches for images whose path matches the provided tag name and tags the image with the tag.
TagImages searches for images whose path matches the provided tag name and tags the image with the tag.
// TagImages searches for images whose path matches the provided tag name and tags the image with the tag .
func TagImages(p *models.Tag, paths []string, aliases []string, rw models.ImageReaderWriter, cache *match.Cache) error {
	t := getTagTaggers(p, aliases, cache)
	for _, tt := range t {
		if err := tt.tagImages(paths, rw, func(subjectID, otherID int) (bool, error) {
			return image.AddTag(rw, otherID, subjectID)
		}); err != nil {
			return err
		}
	}
	return nil
}
func TagImages ( p * models . Tag , paths [ ] string , aliases [ ] string , rw models . ImageReaderWriter , cache * match . Cache ) error { t := getTagTaggers ( p , aliases , cache ) for _ , tt := range t { if err := tt . tagImages ( paths , rw , func ( subjectID , otherID int ) ( bool , error ) { return image . AddTag ( rw , otherID , subjectID ) } ) ; err != nil { return err } } return nil }
TagImages searches for images whose path matches the provided tag name and tags the image with the tag.
TagImages searches for images whose path matches the provided tag name and tags the image with the tag .