// GetIncludesForBundle returns a sorted slice of all includes for a specified bundle.
GetIncludesForBundle returns a sorted slice of all includes for a specified bundle.
// GetIncludesForBundle returns a sorted slice of all includes for a specified bundle .
func GetIncludesForBundle(name, bundlesDir string) ([]string, error) {
	bundle, err := GetDefinition(name, bundlesDir)
	if err != nil {
		return nil, err
	}
	var sorted []string
	for p := range bundle.Includes {
		sorted = append(sorted, p)
	}
	sort.Strings(sorted)
	return sorted, nil
}
func GetIncludesForBundle ( name , bundlesDir string ) ( [ ] string , error ) { bundle , err := GetDefinition ( name , bundlesDir ) if err != nil { return nil , err } var sorted [ ] string for p := range bundle . Includes { sorted = append ( sorted , p ) } sort . Strings ( sorted ) return sorted , nil }
GetIncludesForBundle returns a sorted slice of all includes for a specified bundle.
GetIncludesForBundle returns a sorted slice of all includes for a specified bundle .