// GetAllPackagesForBundle returns a sorted slice of all packages for a specified
// bundle. AllPackages includes the direct packages for a bundle/pundle, along
// with the direct packages of the bundle includes; so all package dependencies.
GetAllPackagesForBundle returns a sorted slice of all packages for a specified
bundle. AllPackages includes the direct packages for a bundle/pundle, along
with the direct packages of the bundle includes; so all package dependencies.
// GetAllPackagesForBundle returns a sorted slice of all packages for a specified // bundle . AllPackages includes the direct packages for a bundle / pundle along // with the direct packages of the bundle includes ; so all package dependencies .
func GetAllPackagesForBundle(name, bundlesDir string) ([]string, error) {
	bundle, err := GetDefinition(name, bundlesDir)
	if err != nil {
		return nil, err
	}
	var sorted []string
	for p := range bundle.AllPackages {
		sorted = append(sorted, p)
	}
	sort.Strings(sorted)
	return sorted, nil
}
func GetAllPackagesForBundle ( name , bundlesDir string ) ( [ ] string , error ) { bundle , err := GetDefinition ( name , bundlesDir ) if err != nil { return nil , err } var sorted [ ] string for p := range bundle . AllPackages { sorted = append ( sorted , p ) } sort . Strings ( sorted ) return sorted , nil }
GetAllPackagesForBundle returns a sorted slice of all packages for a specified
bundle.
GetAllPackagesForBundle returns a sorted slice of all packages for a specified bundle .