Add top-level GetSpec function to nvcdi API

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar
2023-02-22 16:19:22 +02:00
parent 6d6cd56196
commit 89321edae6
5 changed files with 216 additions and 26 deletions

View File

@@ -187,6 +187,7 @@ func (m command) run(c *cli.Context, cfg *config) error {
if err != nil {
return fmt.Errorf("failed to convert CDI spec from YAML to JSON: %v", err)
}
return nil
}
err = writeToOutput(cfg.format, data, outputTo)