Skip to content

Commit

Permalink
fix:linting and typos
Browse files Browse the repository at this point in the history
  • Loading branch information
pacostas committed Jan 16, 2025
1 parent 7622d59 commit 98cc239
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion internal/commands/extension_package.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func ExtensionPackage(logger logging.Logger, cfg config.Config, packager Extensi
Use: "package <name> --config <config-path>",
Short: "Package an extension in OCI format",
Args: cobra.MatchAll(cobra.ExactArgs(1), cobra.OnlyValidArgs),
Example: "pack extension package /output/file.cnb --path /extracted/from/tgz/folder --format file\npack extension package registy/image-name --path /extracted/from/tgz/folder --format image --publish",
Example: "pack extension package /output/file.cnb --path /extracted/from/tgz/folder --format file\npack extension package registry/image-name --path /extracted/from/tgz/folder --format image --publish",
Long: "extension package allows users to package (an) extension(s) into OCI format, which can then to be hosted in " +
"image repositories or persisted on disk as a '.cnb' file." +
"Packaged extensions can be used as inputs to `pack build` (using the `--extension` flag), " +
Expand Down
7 changes: 0 additions & 7 deletions internal/commands/extension_package_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,10 +366,3 @@ func withExtensionClientConfig(clientCfg config.Config) packageExtensionCommandO
config.clientConfig = clientCfg
}
}

func whereReadExtensionDescriptor(descriptor dist.ExtensionDescriptor, err error) func(*fakes.FakePackageConfigReader) {
return func(r *fakes.FakePackageConfigReader) {
r.ReadExtensionDescriptorReturn = descriptor
r.ReadBuildpackDescriptorReturnError = err
}
}
1 change: 0 additions & 1 deletion pkg/dist/extension_descriptor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,4 @@ func testExtensionDescriptor(t *testing.T, when spec.G, it spec.S) {
h.AssertEq(t, extDesc.Targets(), targets)
})
})

}

0 comments on commit 98cc239

Please sign in to comment.