You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--spec-version #0 Which version of CycloneDX to use. (choices: "1.2", "1.3", "1.4", "1.5", default: "1.5")
61
-
--output-format #0 Which output format to use. (choices: "JSON", "XML", default: "JSON")
62
-
--output-file #0 Path to the output file. Set to "-" to write to STDOUT (default: write to STDOUT)
63
-
--production,--prod Exclude development dependencies. (default: true if the NODE_ENV environment variable is set to "production", otherwise false)
64
-
--mc-type #0 Type of the main component. (choices: "application", "framework", "library", "container", "platform", "device-driver", default: "application")
65
-
--licenses Include license information for components in generated SBOM. License information will always be absent for components that don't specify licenses unambiguously.
66
-
--reproducible Whether to go the extra mile and make the output reproducible. This might result in loss of time- and random-based values.
60
+
--spec-version #0 Which version of CycloneDX to use.
Copy file name to clipboardExpand all lines: sources/index.ts
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,7 @@ class SBOMCommand extends BaseCommand {
43
43
details: 'Recursively scan workspace dependencies and emits them as Software-Bill-of-Materials(SBOM) in CycloneDX format.',
44
44
});
45
45
46
+
// @TODO limit to all supported versions - not hardcoded
46
47
specVersion=Option.String("--spec-version",{
47
48
description: 'Which version of CycloneDX to use.\n(choices: "1.2", "1.3", "1.4", "1.5", default: "1.5")',
48
49
});
@@ -52,7 +53,7 @@ class SBOMCommand extends BaseCommand {
52
53
});
53
54
54
55
outputFile=Option.String(`--output-file`,{
55
-
description: `Path to the output file.\nSet to "-" to write to STDOUT\n(default: write to STDOUT)`,
56
+
description: `Path to the output file.\nSet to "-" to write to STDOUT.\n(default: write to STDOUT)`,
56
57
});
57
58
58
59
/* mimic option from yarn.
@@ -63,6 +64,7 @@ class SBOMCommand extends BaseCommand {
63
64
description: 'Exclude development dependencies.\n(default: true if the NODE_ENV environment variable is set to "production", otherwise false)',
64
65
});
65
66
67
+
// @TODO limit to hardcoded: "application", "firmware", "library"
66
68
componentType=Option.String("--mc-type",{
67
69
description: 'Type of the main component.\n(choices: "application", "framework", "library", "container", "platform", "device-driver", default: "application")',
0 commit comments