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:
Armel Soro
2023-07-03 16:19:06 +02:00
committed by GitHub
parent 97644aac7c
commit 4479c24dfe
11 changed files with 411 additions and 6 deletions

View File

@@ -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
}