mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
Display list of commands from the local devfile in odo describe component output (#6944)
* Add integration tests highlighting the expectations * Add and fill a 'Commands' field from the DevfileData struct returned by `describe` * Display commands in the human-readable output of 'odo describe' * Add documentation and sample outputs
This commit is contained in:
@@ -445,5 +445,10 @@ func (o RegistryClient) retrieveDevfileDataFromRegistry(ctx context.Context, reg
|
||||
|
||||
// Convert DevfileObj to DevfileData
|
||||
// use api.GetDevfileData to get supported features
|
||||
return *api.GetDevfileData(devfileObj), nil
|
||||
devfileData, err := api.GetDevfileData(devfileObj)
|
||||
if err != nil {
|
||||
return api.DevfileData{}, err
|
||||
}
|
||||
|
||||
return *devfileData, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user