-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
68 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,24 @@ An example Chai application that displays package metadata for | |
|
||
## Usage | ||
|
||
From the root directory of any repository run `sbom-meta`, you can also specify | ||
a source with `sbom-meta SOURCE` for any of the [supported sources](https://github.com/anchore/syft/wiki/supported-sources), | ||
including Docker images. Use the `--json` flag to omit JSON. | ||
Run `sbom-meta` in the root directory of any repository to get a list of | ||
dependencies with metadata. | ||
|
||
```bash | ||
git clone [email protected]:starship/starship.git | ||
cd starship | ||
sbom-meta | ||
``` | ||
|
||
You can sort any of the fields, ascending or descending: | ||
|
||
```bash | ||
sbom-meta --sort downloads,desc | ||
sbom-meta --sort published,asc | ||
``` | ||
|
||
Use the `--json` flag to output JSON: | ||
|
||
```bash | ||
sbom-meta --json | jq .[1].name | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters