ctr: use transfer service by default

Prior to this commit, `--local=false` had to be explicitly specified to
opt-in to the transfer service

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
Akihiro Suda
2023-11-28 23:05:52 +09:00
parent 02e0fef84b
commit eb123db5fb
5 changed files with 10 additions and 10 deletions

View File

@@ -61,7 +61,7 @@ When '--all-platforms' is given all images in a manifest list must be available.
Name: "all-platforms",
Usage: "Exports content from all platforms",
},
cli.BoolTFlag{
cli.BoolFlag{
Name: "local",
Usage: "Run export locally rather than through transfer API",
},
@@ -93,7 +93,7 @@ When '--all-platforms' is given all images in a manifest list must be available.
}
defer w.Close()
if !context.BoolT("local") {
if !context.Bool("local") {
pf, done := ProgressHandler(ctx, os.Stdout)
defer done()