Skip to content

Commit e341d80

Browse files
immanuwellimjasonh
authored andcommitted
fix: correct --sbom-dir flag description from 'file' to 'directory'
1 parent 48ff20f commit e341d80

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

docs/reference/ko_apply.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ ko apply -f FILENAME [flags]
6464
--push Push images to KO_DOCKER_REPO (default true)
6565
-R, --recursive Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.
6666
--sbom string The SBOM media type to use (none will disable SBOM synthesis and upload). (default "spdx")
67-
--sbom-dir string Path to file where the SBOM will be written.
67+
--sbom-dir string Path to directory where the SBOM will be written.
6868
-l, --selector string Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2)
6969
--tag-only Include tags but not digests in resolved image references. Useful when digests are not preserved when images are repopulated.
7070
-t, --tags strings Which tags to use for the produced image instead of the default 'latest' tag (may not work properly with --base-import-paths or --bare). (default [latest])

docs/reference/ko_build.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ ko build IMPORTPATH... [flags]
5959
-P, --preserve-import-paths Whether to preserve the full import path after KO_DOCKER_REPO.
6060
--push Push images to KO_DOCKER_REPO (default true)
6161
--sbom string The SBOM media type to use (none will disable SBOM synthesis and upload). (default "spdx")
62-
--sbom-dir string Path to file where the SBOM will be written.
62+
--sbom-dir string Path to directory where the SBOM will be written.
6363
--tag-only Include tags but not digests in resolved image references. Useful when digests are not preserved when images are repopulated.
6464
-t, --tags strings Which tags to use for the produced image instead of the default 'latest' tag (may not work properly with --base-import-paths or --bare). (default [latest])
6565
--tarball string File to save images tarballs

docs/reference/ko_create.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ ko create -f FILENAME [flags]
6464
--push Push images to KO_DOCKER_REPO (default true)
6565
-R, --recursive Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.
6666
--sbom string The SBOM media type to use (none will disable SBOM synthesis and upload). (default "spdx")
67-
--sbom-dir string Path to file where the SBOM will be written.
67+
--sbom-dir string Path to directory where the SBOM will be written.
6868
-l, --selector string Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2)
6969
--tag-only Include tags but not digests in resolved image references. Useful when digests are not preserved when images are repopulated.
7070
-t, --tags strings Which tags to use for the produced image instead of the default 'latest' tag (may not work properly with --base-import-paths or --bare). (default [latest])

docs/reference/ko_resolve.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ ko resolve -f FILENAME [flags]
5757
--push Push images to KO_DOCKER_REPO (default true)
5858
-R, --recursive Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.
5959
--sbom string The SBOM media type to use (none will disable SBOM synthesis and upload). (default "spdx")
60-
--sbom-dir string Path to file where the SBOM will be written.
60+
--sbom-dir string Path to directory where the SBOM will be written.
6161
-l, --selector string Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2)
6262
--tag-only Include tags but not digests in resolved image references. Useful when digests are not preserved when images are repopulated.
6363
-t, --tags strings Which tags to use for the produced image instead of the default 'latest' tag (may not work properly with --base-import-paths or --bare). (default [latest])

docs/reference/ko_run.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ ko run IMPORTPATH [flags]
4747
-P, --preserve-import-paths Whether to preserve the full import path after KO_DOCKER_REPO.
4848
--push Push images to KO_DOCKER_REPO (default true)
4949
--sbom string The SBOM media type to use (none will disable SBOM synthesis and upload). (default "spdx")
50-
--sbom-dir string Path to file where the SBOM will be written.
50+
--sbom-dir string Path to directory where the SBOM will be written.
5151
--tag-only Include tags but not digests in resolved image references. Useful when digests are not preserved when images are repopulated.
5252
-t, --tags strings Which tags to use for the produced image instead of the default 'latest' tag (may not work properly with --base-import-paths or --bare). (default [latest])
5353
--tarball string File to save images tarballs

pkg/commands/options/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func AddBuildOptions(cmd *cobra.Command, bo *BuildOptions) {
9292
cmd.Flags().StringVar(&bo.SBOM, "sbom", "spdx",
9393
"The SBOM media type to use (none will disable SBOM synthesis and upload).")
9494
cmd.Flags().StringVar(&bo.SBOMDir, "sbom-dir", "",
95-
"Path to file where the SBOM will be written.")
95+
"Path to directory where the SBOM will be written.")
9696
cmd.Flags().StringSliceVar(&bo.Platforms, "platform", []string{},
9797
"Which platform to use when pulling a multi-platform base. Format: all | <os>[/<arch>[/<variant>]][,platform]*")
9898
cmd.Flags().StringSliceVar(&bo.Labels, "image-label", []string{},

0 commit comments

Comments
 (0)