diff options
author | Steve Winslow <steve@swinslow.net> | 2022-03-30 21:08:37 -0400 |
---|---|---|
committer | Steve Winslow <steve@swinslow.net> | 2022-03-30 21:08:37 -0400 |
commit | 5bc994e2be4aa8d749ec39fd0774620fdcd97479 (patch) | |
tree | 81b8454461490c9d5161362f9cfd0a77c8e1c8ef /examples | |
parent | 83abf1a8ef1641441627408e26599c556082b103 (diff) | |
download | spdx-tools-5bc994e2be4aa8d749ec39fd0774620fdcd97479.tar.gz |
examples: Move and rename tag-value samples
Signed-off-by: Steve Winslow <steve@swinslow.net>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/1-load/example_load.go | 2 | ||||
-rw-r--r-- | examples/2-load-save/example_load_save.go | 2 | ||||
-rw-r--r-- | examples/5-report/example_report.go | 2 | ||||
-rw-r--r-- | examples/6-licensediff/example_licensediff.go | 2 | ||||
-rw-r--r-- | examples/9-tvtojson/exampletvtojson.go | 2 | ||||
-rw-r--r-- | examples/README.md | 10 | ||||
-rw-r--r-- | examples/sample-docs/tv/SPDXTagExample-v2.2.spdx (renamed from examples/sample-docs/example2/spdx/SPDXTagExample-v2.2.spdx) | 0 | ||||
-rw-r--r-- | examples/sample-docs/tv/hello.spdx (renamed from examples/sample-docs/example1/spdx/SPDXTagExample-v2.2.spdx) | 0 |
8 files changed, 10 insertions, 10 deletions
diff --git a/examples/1-load/example_load.go b/examples/1-load/example_load.go index 6702064..12563d2 100644 --- a/examples/1-load/example_load.go +++ b/examples/1-load/example_load.go @@ -4,7 +4,7 @@ // This example demonstrates loading an SPDX tag-value file from disk into // memory, and printing some of its contents to standard output. -// Run project: go run example_load.go ../sample-docs/example1/spdx/SPDXTagExample-v2.2.spdx +// Run project: go run example_load.go ../sample-docs/tv/hello.spdx package main diff --git a/examples/2-load-save/example_load_save.go b/examples/2-load-save/example_load_save.go index 526f88d..7d23403 100644 --- a/examples/2-load-save/example_load_save.go +++ b/examples/2-load-save/example_load_save.go @@ -4,7 +4,7 @@ // This example demonstrates loading an SPDX tag-value file from disk into memory, // and re-saving it to a different file on disk. -// Run project: go run example_load_save.go ../sample-docs/example1/spdx/SPDXTagExample-v2.2.spdx test.spdx +// Run project: go run example_load_save.go ../sample-docs/tv/hello.spdx test.spdx package main diff --git a/examples/5-report/example_report.go b/examples/5-report/example_report.go index 7fa93dc..bd7971f 100644 --- a/examples/5-report/example_report.go +++ b/examples/5-report/example_report.go @@ -5,7 +5,7 @@ // This example demonstrates loading an SPDX tag-value file from disk into memory, // generating a basic report listing counts of the concluded licenses for its // files, and printing the report to standard output. -// Run project: go run example_report.go ../sample-docs/example1/spdx/SPDXTagExample-v2.2.spdx +// Run project: go run example_report.go ../sample-docs/tv/hello.spdx package main import ( diff --git a/examples/6-licensediff/example_licensediff.go b/examples/6-licensediff/example_licensediff.go index 3d434a1..f625c97 100644 --- a/examples/6-licensediff/example_licensediff.go +++ b/examples/6-licensediff/example_licensediff.go @@ -8,7 +8,7 @@ // This is generally only useful when run with two SPDX documents that // describe licenses for subsequent versions of the same set of files, AND if // they have the same identifier in both documents. -// Run project: go run example_licensediff.go ../sample-docs/example1/spdx/SPDXTagExample-v2.2.spdx ../sample-docs/example2/spdx/SPDXTagExample-v2.2.spdx +// Run project: go run example_licensediff.go ../sample-docs/tv/hello.spdx ../sample-docs/tv/SPDXTagExample-v2.2.spdx package main import ( diff --git a/examples/9-tvtojson/exampletvtojson.go b/examples/9-tvtojson/exampletvtojson.go index 8ebac7c..e75afc4 100644 --- a/examples/9-tvtojson/exampletvtojson.go +++ b/examples/9-tvtojson/exampletvtojson.go @@ -4,7 +4,7 @@ // This example demonstrates loading an SPDX tag-value file from disk into memory, // and re-saving it to a different json file on disk. -// Run project: go run exampletvtojson.go ../sample-docs/example1/spdx/SPDXTagExample-v2.2.spdx example.json +// Run project: go run exampletvtojson.go ../sample-docs/tv/hello.spdx example.json package main import ( diff --git a/examples/README.md b/examples/README.md index dec1152..707b08d 100644 --- a/examples/README.md +++ b/examples/README.md @@ -12,7 +12,7 @@ within the example's subdirectory. This example demonstrates loading an SPDX tag-value file from disk into memory, and printing some of its contents to standard output. -#### Run project: *go run example_load.go ../sample-docs/example1/spdx/SPDXTagExample-v2.2.spdx* +#### Run project: *go run example_load.go ../sample-docs/tv/hello.spdx* ## 2-load-save/ @@ -20,7 +20,7 @@ and printing some of its contents to standard output. This example demonstrates loading an SPDX tag-value file from disk into memory, and re-saving it to a different file on disk. -#### Run project: *go run example_load_save.go ../sample-docs/example1/spdx/SPDXTagExample-v2.2.spdx test.spdx* +#### Run project: *go run example_load_save.go ../sample-docs/tv/hello.spdx test.spdx* ## 3-build/ @@ -48,7 +48,7 @@ Package and File license fields; and saving the resulting document to disk. This example demonstrates loading an SPDX tag-value file from disk into memory, generating a basic report listing counts of the concluded licenses for its files, and printing the report to standard output. -#### Run project: *go run example_report.go ../sample-docs/example1/spdx/SPDXTagExample-v2.2.spdx* +#### Run project: *go run example_report.go ../sample-docs/tv/hello.spdx* ## 6-licensediff @@ -61,7 +61,7 @@ with matching IDs in each document. This is generally only useful when run with two SPDX documents that describe licenses for subsequent versions of the same set of files, AND if they have the same identifier in both documents. -#### Run project: *go run example_licensediff.go ../sample-docs/example1/spdx/SPDXTagExample-v2.2.spdx ../sample-docs/example2/spdx/SPDXTagExample2-v2.2.spdx* +#### Run project: *go run example_licensediff.go ../sample-docs/tv/hello.spdx ../sample-docs/tv/SPDXTagExample2-v2.2.spdx* ## 7-rdfloader @@ -85,7 +85,7 @@ and then re-saving it to a different file on disk in tag-value format. This example demonstrates loading an SPDX tag-value from disk into memory and then re-saving it to a different file on disk in json format. -#### Run project: *go run exampletvtojson.go ../sample-docs/example1/spdx/SPDXTagExample-v2.2.spdx example.json* +#### Run project: *go run exampletvtojson.go ../sample-docs/tv/hello.spdx example.json* ## 10-jsonloader diff --git a/examples/sample-docs/example2/spdx/SPDXTagExample-v2.2.spdx b/examples/sample-docs/tv/SPDXTagExample-v2.2.spdx index 03ec653..03ec653 100644 --- a/examples/sample-docs/example2/spdx/SPDXTagExample-v2.2.spdx +++ b/examples/sample-docs/tv/SPDXTagExample-v2.2.spdx diff --git a/examples/sample-docs/example1/spdx/SPDXTagExample-v2.2.spdx b/examples/sample-docs/tv/hello.spdx index def760c..def760c 100644 --- a/examples/sample-docs/example1/spdx/SPDXTagExample-v2.2.spdx +++ b/examples/sample-docs/tv/hello.spdx |