-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update README to reflect new columns on resource list command
Signed-off-by: Matt Rutkowski <[email protected]>
- Loading branch information
Showing
3 changed files
with
69 additions
and
41 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 |
---|---|---|
|
@@ -1276,21 +1276,22 @@ Currently, all `resource list` command results are sorted by resource `type` the | |
``` | ||
|
||
```bash | ||
type name version bom-ref | ||
---- ---- ------- ------- | ||
component ACME Application 2.0.0 pkg:app/[email protected] | ||
component Library A 1.0.0 pkg:lib/[email protected] | ||
component Library B 1.0.0 pkg:lib/[email protected] | ||
component Library C 1.0.0 pkg:lib/[email protected] | ||
component Library D 1.0.0 pkg:lib/[email protected] | ||
component Library E 1.0.0 pkg:lib/[email protected] | ||
component Library F 1.0.0 pkg:lib/[email protected] | ||
component Library G 1.0.0 pkg:lib/[email protected] | ||
component Library H 1.0.0 pkg:lib/[email protected] | ||
component Library J 1.0.0 pkg:lib/[email protected] | ||
component Library NoLicense 1.0.0 pkg:lib/[email protected] | ||
service Bar service:example.com/myservices/bar | ||
service Foo service:example.com/myservices/foo | ||
resource-type group name version description bom-ref | ||
------------- ----- ---- ------- ----------- ------- | ||
component ACME Application 2.0.0 ACME sample application pkg:app/[email protected] | ||
component Library A 1.0.0 Library A description pkg:lib/[email protected] | ||
component Library C 1.0.0 Library C description. pkg:lib/[email protected] | ||
component Library F 1.0.0 Library F description. pkg:lib/[email protected] | ||
component Library G 1.0.0 Library G description. pkg:lib/[email protected] | ||
component Library H 1.0.0 Library H description. pkg:lib/[email protected] | ||
component Library NoLicense 1.0.0 Library "NoLicense" description. pkg:lib/[email protected] | ||
component blue Library B 1.0.0 Library B description. pkg:lib/[email protected] | ||
component blue Library E 1.0.0 Library E description. pkg:lib/[email protected] | ||
component green Library D 1.0.0 Library D description. pkg:lib/[email protected] | ||
component green Library J 1.0.0 Library J description. pkg:lib/[email protected] | ||
service Bar Bar service service:example.com/myservices/bar | ||
service Foo Foo service service:example.com/myservices/foo | ||
|
||
``` | ||
|
||
##### Example: resource list using `--type service` | ||
|
@@ -1302,10 +1303,16 @@ This example uses the `type` flag to specific `service`. The other valid type i | |
``` | ||
|
||
```bash | ||
type name version bom-ref | ||
---- ---- ------- ------- | ||
service Bar service:example.com/myservices/bar | ||
service Foo service:example.com/myservices/foo | ||
resource-type group name version description bom-ref | ||
------------- ----- ---- ------- ----------- ------- | ||
service Bar Bar service service:example.com/myservices/bar | ||
service Foo Foo service service:example.com/myservices/foo | ||
``` | ||
|
||
**Note** The results would be equivalent to using the `--where` filter: | ||
|
||
```bash | ||
./sbom-utility resource list -i test/cyclonedx/cdx-1-3-resource-list.json --where "resource-type=service" --quiet | ||
``` | ||
|
||
##### Example: list with `name` regex match | ||
|
@@ -1317,9 +1324,9 @@ This example uses the `where` filter on the `name` field. In this case we supply | |
``` | ||
|
||
```bash | ||
type name version bom-ref | ||
---- ---- ------- ------- | ||
component Library A 1.0.0 pkg:lib/[email protected] | ||
resource-type group name version description bom-ref | ||
------------- ----- ---- ------- ----------- ------- | ||
component Library A 1.0.0 Library A description pkg:lib/[email protected] | ||
``` | ||
|
||
--- | ||
|
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
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