Merge pull request #1852 from ipfs-cluster/ctl-nopin

ctl: support no-pin option when adding
This commit is contained in:
Hector Sanjuan 2023-02-22 21:55:24 +00:00 committed by GitHub
commit 774a1b443f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -370,6 +370,10 @@ content.
Name: "allocations, allocs",
Usage: "Optional comma-separated list of peer IDs",
},
cli.BoolFlag{
Name: "no-pin",
Usage: "Do not pin after adding",
},
cli.BoolFlag{
Name: "wait",
Usage: waitFlagDesc,
@ -478,6 +482,7 @@ content.
if c.String("allocations") != "" {
p.UserAllocations = api.StringsToPeers(strings.Split(c.String("allocations"), ","))
}
p.NoPin = c.Bool("no-pin")
p.Format = c.String("format")
//p.Shard = shard
//p.ShardSize = c.Uint64("shard-size")