Skip to content

Commit 08ab232

Browse files
committed
docs: help page
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 97336f5 commit 08ab232

File tree

2 files changed

+6
-44
lines changed

2 files changed

+6
-44
lines changed

README.md

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ YARN_PLUGINS=.../bundles/@yarnpkg/plugin-sbom.js yarn sbom --help
4949
The help page:
5050

5151
```text
52-
Generates CycloneDX SBOM file for current workspace.
52+
Generates CycloneDX SBOM for current workspace.
5353
5454
━━━ Usage ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
5555
56-
$ yarn sbom
56+
$ yarn CycloneDX make-sbom
5757
5858
━━━ Options ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
5959
@@ -73,25 +73,8 @@ Generates CycloneDX SBOM file for current workspace.
7373
7474
━━━ Details ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
7575
76-
Recursively scan workspace dependencies and emits them as SBOM file in
77-
CycloneDX's JSON format.
78-
79-
━━━ Examples ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
80-
81-
Generate SBOM in JSON format for all dependencies and write it to standard output.
82-
$ yarn sbom
83-
84-
Generate SBOM in JSON format for all dependencies and write it to standard output.
85-
$ yarn sbom --component-type=library
86-
87-
Generate SBOM in JSON format for runtime dependencies but omit development dependencies.
88-
$ yarn sbom --component-type=application --output-file ./sbom-prod.cdx.json --production
89-
90-
Generate SBOM in XML format for runtime dependencies but omit development dependencies.
91-
$ yarn sbom --component-type=application --output-file ./sbom-prod.cdx.json --output-format=XML --production
92-
93-
Generate SBOM with component licenses.
94-
$ yarn sbom --licenses
76+
Recursively scan workspace dependencies and emits them as
77+
Software-Bill-of-Materials(SBOM) in CycloneDX format.
9578
```
9679

9780

sources/index.ts

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -38,29 +38,8 @@ class SBOMCommand extends BaseCommand {
3838
];
3939

4040
static readonly usage: Usage = Command.Usage({
41-
description: `Generates CycloneDX SBOM file for current workspace.`,
42-
details: `
43-
Recursively scan workspace dependencies and emits them as SBOM file in CycloneDX's JSON format.
44-
`,
45-
examples: [
46-
[
47-
`Generate SBOM in JSON format for all dependencies and write it to standard output.`,
48-
`$0 sbom`,
49-
],
50-
[
51-
`Generate SBOM in JSON format for all dependencies and write it to standard output.`,
52-
`$0 sbom --component-type=library`,
53-
],
54-
[
55-
`Generate SBOM in JSON format for runtime dependencies but omit development dependencies.`,
56-
`$0 sbom --component-type=application --output-file ./sbom-prod.cdx.json --production`,
57-
],
58-
[
59-
`Generate SBOM in XML format for runtime dependencies but omit development dependencies.`,
60-
`$0 sbom --component-type=application --output-file ./sbom-prod.cdx.json --output-format=XML --production`,
61-
],
62-
[`Generate SBOM with component licenses.`, `$0 sbom --licenses`],
63-
],
41+
description: `Generates CycloneDX SBOM for current workspace.`,
42+
details: 'Recursively scan workspace dependencies and emits them as Software-Bill-of-Materials(SBOM) in CycloneDX format.',
6443
});
6544

6645
specVersion = Option.String("--spec-version", {

0 commit comments

Comments
 (0)