Skip to content

Commit

Permalink
cmd: small fixes
Browse files Browse the repository at this point in the history
Signed-off-by: zhouhao <[email protected]>
  • Loading branch information
zhouhao committed May 15, 2017
1 parent a0cf60c commit 3664cf6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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 @@ -34,7 +34,7 @@ type bundleCmd struct {
root string
}

func createHandle(context *cli.Context) error {
func createHandler(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: createHandler,
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 unpackHandler(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: unpackHandler,
Flags: []cli.Flag{
cli.StringFlag{
Name: "type",
Expand Down

0 comments on commit 3664cf6

Please sign in to comment.