From b1d4eee3ee893b48d83216647f393f07ce258809 Mon Sep 17 00:00:00 2001 From: Hector Sanjuan Date: Wed, 22 Feb 2023 22:37:42 +0100 Subject: [PATCH] ctl: support no-pin option when adding --- cmd/ipfs-cluster-ctl/main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/ipfs-cluster-ctl/main.go b/cmd/ipfs-cluster-ctl/main.go index b44e21cc..c2d9d555 100644 --- a/cmd/ipfs-cluster-ctl/main.go +++ b/cmd/ipfs-cluster-ctl/main.go @@ -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")