add first distro support

This commit is contained in:
Alex Goodman
2020-06-01 10:46:06 -04:00
parent 1f272c2bda
commit 45fbd05cf9
9 changed files with 116 additions and 17 deletions
+8
View File
@@ -55,6 +55,14 @@ func doRunCmd(cmd *cobra.Command, args []string) int {
}
defer stereoscope.Cleanup()
log.Info("Identifying Distro")
distro, err := imgbom.IdentifyDistro(img)
if err != nil {
log.Errorf("error identifying Distro: %w", err)
} else {
log.Info(" Distro: %s", distro)
}
log.Info("Cataloging image")
catalog, err := imgbom.CatalogImage(img, appConfig.ScopeOpt)
if err != nil {