Skip to content

Commit 6f1551c

Browse files
committed
extension of common pkg
Signed-off-by: Vivek Kumar Sahu <vivekkumarsahu650@gmail.com>
1 parent 40dceec commit 6f1551c

File tree

13 files changed

+303
-284
lines changed

13 files changed

+303
-284
lines changed

cmd/compliance.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ var complianceCmd = &cobra.Command{
4141
4242
# Check a OpenChain Telco compliance against a SBOM in a JSON output
4343
sbomqs compliance --oct --json samples/sbomqs-spdx-syft.json
44+
45+
# Check a V3 Framing document compliance against a SBOM in a table output
46+
sbomqs compliance --fsct-v3 <sbom>
47+
48+
# Check a V3 Framing document compliance against a SBOM in a JSON output
49+
sbomqs compliance --fsct-v3 -j <sbom>
4450
`,
4551
Args: func(cmd *cobra.Command, args []string) error {
4652
if err := cobra.ExactArgs(1)(cmd, args); err != nil {
@@ -74,6 +80,7 @@ func setupEngineParams(cmd *cobra.Command, args []string) *engine.Params {
7480
// engParams.Ntia, _ = cmd.Flags().GetBool("ntia")
7581
engParams.Bsi, _ = cmd.Flags().GetBool("bsi")
7682
engParams.Oct, _ = cmd.Flags().GetBool("oct")
83+
engParams.Fsct, _ = cmd.Flags().GetBool("fsct")
7784

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

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

0 commit comments

Comments
 (0)