mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 16:33:21 +01:00
* chore: fixed format conversion docs link (#3143) Signed-off-by: Artemii Fedotov <artemii.fedotov@tutamail.com> * changed link to wiki docs Signed-off-by: Artemii Fedotov <artemii.fedotov@tutamail.com> --------- Signed-off-by: Artemii Fedotov <artemii.fedotov@tutamail.com>
This commit is contained in:
parent
fcf1350a0e
commit
6a1e3f32fe
@ -17,7 +17,7 @@ import (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
convertExample = ` {{.appName}} {{.command}} img.syft.json -o spdx-json convert a syft SBOM to spdx-json, output goes to stdout
|
convertExample = ` {{.appName}} {{.command}} img.syft.json -o spdx-json convert a syft SBOM to spdx-json, output goes to stdout
|
||||||
{{.appName}} {{.command}} img.syft.json -o cyclonedx-json=img.cdx.json convert a syft SBOM to CycloneDX, output is written to the file "img.cdx.json""
|
{{.appName}} {{.command}} img.syft.json -o cyclonedx-json=img.cdx.json convert a syft SBOM to CycloneDX, output is written to the file "img.cdx.json"
|
||||||
{{.appName}} {{.command}} - -o spdx-json convert an SBOM from STDIN to spdx-json
|
{{.appName}} {{.command}} - -o spdx-json convert an SBOM from STDIN to spdx-json
|
||||||
`
|
`
|
||||||
)
|
)
|
||||||
@ -39,7 +39,7 @@ func Convert(app clio.Application) *cobra.Command {
|
|||||||
return app.SetupCommand(&cobra.Command{
|
return app.SetupCommand(&cobra.Command{
|
||||||
Use: "convert [SOURCE-SBOM] -o [FORMAT]",
|
Use: "convert [SOURCE-SBOM] -o [FORMAT]",
|
||||||
Short: "Convert between SBOM formats",
|
Short: "Convert between SBOM formats",
|
||||||
Long: "[Experimental] Convert SBOM files to, and from, SPDX, CycloneDX and Syft's format. For more info about data loss between formats see https://github.com/anchore/syft#format-conversion-experimental",
|
Long: "[Experimental] Convert SBOM files to, and from, SPDX, CycloneDX and Syft's format. For more info about data loss between formats see https://github.com/anchore/syft/wiki/format-conversion",
|
||||||
Example: internal.Tprintf(convertExample, map[string]interface{}{
|
Example: internal.Tprintf(convertExample, map[string]interface{}{
|
||||||
"appName": id.Name,
|
"appName": id.Name,
|
||||||
"command": "convert",
|
"command": "convert",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user