Skip to content

Expose bundle package list and metadata via bundle API #1313

@nicleary

Description

@nicleary

Is your feature request related to a problem? Please describe

My team is developing a commandline application which needs to obtain a list of packages contained within a bundle by using the API from within the uds-cli. Adding a GetPackagesInBundle() method to the bundle API would suffice for this purpose, as well as a GetBundleMetadata() method

Describe the solution you'd like

  • A method to expose the list of packages contained within a bundle once it is loaded is added to the Bundle struct, similar to below
// GetPackagesInBundle returns the packages contained within the bundle
func (b *Bundle) GetPackagesInBundle() []types.Package {
	return b.bundle.Packages
}

Describe alternatives you've considered

(optional) A clear and concise description of any alternative solutions or features you've considered.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions