Closed
Description
Which area this feature is related to?
/area library
Which functionality do you think we should add?
Why is this needed? Is your feature request related to a problem?
for #720
Detailed description:
introduce name filter in DevfileOptions
, so that consumers can get a particular devfile entry with the entry name.
Describe the solution you'd like
A new field FilterByName
will be introduced as the name filter.
common.DevfileOptions{
FilterByName: string,
}
Just support the simplest case: if name is specified, return the particular entry, and return an empty list if not found (similar as other filters). if no name specified, return the list of entries that qualifies the filter defined.
we do not do any additional support to other specific cases, tools can customize the result as needed.