Skip to content
This repository was archived by the owner on Jan 15, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmd/oci-image-tool/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type bundleCmd struct {
root string
}

func createHandle(context *cli.Context) error {
func createAction(context *cli.Context) error {
if len(context.Args()) != 2 {
return fmt.Errorf("both src and dest must be provided")
}
Expand Down Expand Up @@ -76,7 +76,7 @@ func createHandle(context *cli.Context) error {
var createCommand = cli.Command{
Name: "create",
Usage: "Create an OCI image runtime bundle",
Action: createHandle,
Action: createAction,
Flags: []cli.Flag{
cli.StringFlag{
Name: "type",
Expand Down
4 changes: 2 additions & 2 deletions cmd/oci-image-tool/unpack.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type unpackCmd struct {
ref string
}

func unpackHandle(context *cli.Context) error {
func unpackAction(context *cli.Context) error {
if len(context.Args()) != 2 {
return fmt.Errorf("both src and dest must be provided")
}
Expand Down Expand Up @@ -72,7 +72,7 @@ func unpackHandle(context *cli.Context) error {
var unpackCommand = cli.Command{
Name: "unpack",
Usage: "Unpack an image or image source layout",
Action: unpackHandle,
Action: unpackAction,
Flags: []cli.Flag{
cli.StringFlag{
Name: "type",
Expand Down
4 changes: 2 additions & 2 deletions cmd/oci-image-tool/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type validateCmd struct {

var v validateCmd

func validateHandler(context *cli.Context) error {
func validateAction(context *cli.Context) error {
if len(context.Args()) < 1 {
return fmt.Errorf("no files specified")
}
Expand Down Expand Up @@ -129,7 +129,7 @@ func validatePath(name string) error {
var validateCommand = cli.Command{
Name: "validate",
Usage: "Validate one or more image files",
Action: validateHandler,
Action: validateAction,
Flags: []cli.Flag{
cli.StringFlag{
Name: "type",
Expand Down