diff --git a/cmd/ctr/commands/images/import.go b/cmd/ctr/commands/images/import.go index 2c1d4144e..cde0bd1ce 100644 --- a/cmd/ctr/commands/images/import.go +++ b/cmd/ctr/commands/images/import.go @@ -84,7 +84,7 @@ If foobar.tar contains an OCI ref named "latest" and anonymous ref "sha256:deadb Name: "no-unpack", Usage: "skip unpacking the images, cannot be used with --discard-unpacked-layers, false by default", }, - cli.BoolFlag{ + cli.BoolTFlag{ Name: "local", Usage: "run import locally rather than through transfer API", }, @@ -111,7 +111,7 @@ If foobar.tar contains an OCI ref named "latest" and anonymous ref "sha256:deadb } defer cancel() - if !context.Bool("local") { + if !context.BoolT("local") { var opts []image.StoreOpt prefix := context.String("base-name") if prefix == "" { diff --git a/cmd/ctr/commands/images/pull.go b/cmd/ctr/commands/images/pull.go index 2728d2ba7..a6612148c 100644 --- a/cmd/ctr/commands/images/pull.go +++ b/cmd/ctr/commands/images/pull.go @@ -73,7 +73,7 @@ command. As part of this process, we do the following: Name: "max-concurrent-downloads", Usage: "Set the max concurrent downloads for each pull", }, - cli.BoolFlag{ + cli.BoolTFlag{ Name: "local", Usage: "Fetch content from local client rather than using transfer service", }, @@ -92,7 +92,7 @@ command. As part of this process, we do the following: } defer cancel() - if !context.Bool("local") { + if !context.BoolT("local") { ch, err := commands.NewStaticCredentials(ctx, context, ref) if err != nil { return err diff --git a/cmd/ctr/commands/images/push.go b/cmd/ctr/commands/images/push.go index 8937d2930..defc25032 100644 --- a/cmd/ctr/commands/images/push.go +++ b/cmd/ctr/commands/images/push.go @@ -70,9 +70,9 @@ var pushCommand = cli.Command{ }, cli.IntFlag{ Name: "max-concurrent-uploaded-layers", Usage: "set the max concurrent uploaded layers for each push", - }, cli.BoolFlag{ + }, cli.BoolTFlag{ Name: "local", - Usage: "Push content from local client rather than using transfer service", + Usage: "push content from local client rather than using transfer service", }, cli.BoolFlag{ Name: "allow-non-distributable-blobs", Usage: "allow pushing blobs that are marked as non-distributable", @@ -94,7 +94,7 @@ var pushCommand = cli.Command{ } defer cancel() - if !context.Bool("local") { + if !context.BoolT("local") { ch, err := commands.NewStaticCredentials(ctx, context, ref) if err != nil { return err