Merge pull request #1852 from ipfs-cluster/ctl-nopin
ctl: support no-pin option when adding
This commit is contained in:
commit
774a1b443f
|
@ -370,6 +370,10 @@ content.
|
||||||
Name: "allocations, allocs",
|
Name: "allocations, allocs",
|
||||||
Usage: "Optional comma-separated list of peer IDs",
|
Usage: "Optional comma-separated list of peer IDs",
|
||||||
},
|
},
|
||||||
|
cli.BoolFlag{
|
||||||
|
Name: "no-pin",
|
||||||
|
Usage: "Do not pin after adding",
|
||||||
|
},
|
||||||
cli.BoolFlag{
|
cli.BoolFlag{
|
||||||
Name: "wait",
|
Name: "wait",
|
||||||
Usage: waitFlagDesc,
|
Usage: waitFlagDesc,
|
||||||
|
@ -478,6 +482,7 @@ content.
|
||||||
if c.String("allocations") != "" {
|
if c.String("allocations") != "" {
|
||||||
p.UserAllocations = api.StringsToPeers(strings.Split(c.String("allocations"), ","))
|
p.UserAllocations = api.StringsToPeers(strings.Split(c.String("allocations"), ","))
|
||||||
}
|
}
|
||||||
|
p.NoPin = c.Bool("no-pin")
|
||||||
p.Format = c.String("format")
|
p.Format = c.String("format")
|
||||||
//p.Shard = shard
|
//p.Shard = shard
|
||||||
//p.ShardSize = c.Uint64("shard-size")
|
//p.ShardSize = c.Uint64("shard-size")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user