Skip to content

Commit

Permalink
Update sbom-tool-cli-reference.md (#705)
Browse files Browse the repository at this point in the history
Updated documentation to include an example to exclude multiple patterns.

Co-authored-by: Sarah Oslund <[email protected]>
  • Loading branch information
ChristophHornung and sfoslund authored Sep 16, 2024
1 parent 10f3aae commit 20493e8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/sbom-tool-cli-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ the contents of these directories out of the packages section of the SBOM. For e
./sbom-tool-win-x64.exe generate -b c:\outputDrop -bc c:\Users\test\TestProject -pn TestProject -pv 1.0.0 -ps MyCompany -nsb http://mycompany.com -cd "--DirectoryExclusionList **/bin/**"
```

You can give multiple exclusion patterns by repeating the `--DirectoryExclusionList` argument. (Note that minimatch combines like `**/bin/**|**/obj/**` won't work):

```
./sbom-tool-win-x64.exe generate -b c:\outputDrop -bc c:\Users\test\TestProject -pn TestProject -pv 1.0.0 -ps MyCompany -nsb http://mycompany.com -cd "--DirectoryExclusionList **/bin/** --DirectoryExclusionList **/obj/**"
```

### Write telemetry to a file

By default, users commonly log telemetry to the console output. In order to log the telemetry as part of the SBOM file, specify the `-t` parameter:
Expand Down

0 comments on commit 20493e8

Please sign in to comment.