Skip to content

Commit

Permalink
Merge pull request #146 from q384566678/fix-sub
Browse files Browse the repository at this point in the history
cmd: small fixes
  • Loading branch information
Zhou Hao authored Jan 24, 2018
2 parents dab5ba5 + a4459d1 commit af57c3b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cmd/oci-image-tool/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type bundleCmd struct {
platform 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 @@ -82,7 +82,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 @@ -35,7 +35,7 @@ type unpackCmd struct {
platform 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 @@ -79,7 +79,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 @@ -44,7 +44,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 @@ -131,7 +131,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

0 comments on commit af57c3b

Please sign in to comment.