ctl: support no-pin option when adding

This commit is contained in:
Hector Sanjuan 2023-02-22 22:37:42 +01:00
parent 64bda611d5
commit b1d4eee3ee

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")