Skip to content

Commit

Permalink
extension of common pkg
Browse files Browse the repository at this point in the history
Signed-off-by: Vivek Kumar Sahu <[email protected]>
  • Loading branch information
viveksahu26 committed Sep 16, 2024
1 parent 40dceec commit 6f1551c
Show file tree
Hide file tree
Showing 13 changed files with 303 additions and 284 deletions.
8 changes: 8 additions & 0 deletions cmd/compliance.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ var complianceCmd = &cobra.Command{
# Check a OpenChain Telco compliance against a SBOM in a JSON output
sbomqs compliance --oct --json samples/sbomqs-spdx-syft.json
# Check a V3 Framing document compliance against a SBOM in a table output
sbomqs compliance --fsct-v3 <sbom>
# Check a V3 Framing document compliance against a SBOM in a JSON output
sbomqs compliance --fsct-v3 -j <sbom>
`,
Args: func(cmd *cobra.Command, args []string) error {
if err := cobra.ExactArgs(1)(cmd, args); err != nil {
Expand Down Expand Up @@ -74,6 +80,7 @@ func setupEngineParams(cmd *cobra.Command, args []string) *engine.Params {
// engParams.Ntia, _ = cmd.Flags().GetBool("ntia")
engParams.Bsi, _ = cmd.Flags().GetBool("bsi")
engParams.Oct, _ = cmd.Flags().GetBool("oct")
engParams.Fsct, _ = cmd.Flags().GetBool("fsct")

engParams.Debug, _ = cmd.Flags().GetBool("debug")

Expand All @@ -100,4 +107,5 @@ func init() {
complianceCmd.Flags().BoolP("bsi", "c", false, "BSI TR-03183-2 v1.1 compliance")
// complianceCmd.MarkFlagsMutuallyExclusive("ntia", "cra")
complianceCmd.Flags().BoolP("oct", "t", false, "OpenChainTelco compliance")
complianceCmd.Flags().BoolP("fsct-v3", "fv", false, "V3 Framing document compliance")
}
Loading

0 comments on commit 6f1551c

Please sign in to comment.