Skip to content

Commit 2633ecc

Browse files
feat: Migration to new UI for commands: completeness, validate
1 parent a2103e2 commit 2633ecc

25 files changed

+2993
-400
lines changed

cmd/completeness.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"github.com/idlab-discover/AIBoMGen-cli/internal/completeness"
1111
bomio "github.com/idlab-discover/AIBoMGen-cli/internal/io"
1212
"github.com/idlab-discover/AIBoMGen-cli/internal/metadata"
13+
"github.com/idlab-discover/AIBoMGen-cli/internal/ui"
1314
)
1415

1516
var completenessCmd = &cobra.Command{
@@ -52,7 +53,11 @@ var completenessCmd = &cobra.Command{
5253
}
5354

5455
res := completeness.Check(bom)
55-
completeness.PrintReport(res)
56+
57+
// Use the new UI for rendering if not in quiet mode
58+
ui := ui.NewCompletenessUI(cmd.OutOrStdout(), level == "quiet")
59+
ui.PrintReport(res.ToUIReport())
60+
5661
return nil
5762
},
5863
}

0 commit comments

Comments
 (0)