Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipfs-cluster-ctl: do not provide "peers add" #397

Merged
merged 1 commit into from
Apr 27, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 0 additions & 22 deletions ipfs-cluster-ctl/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,28 +214,6 @@ This command provides a list of the ID information of all the peers in the Clust
return nil
},
},
{
Name: "add",
Usage: "add a peer to the Cluster",
Description: `
This command adds a new peer to the cluster. In order for the operation to
succeed, the new peer needs to be reachable and any other member of the cluster
should be online. The operation returns the ID information for the new peer.
`,
ArgsUsage: "<multiaddress>",
Flags: []cli.Flag{},
Action: func(c *cli.Context) error {
addr := c.Args().First()
if addr == "" {
return cli.NewExitError("Error: a multiaddress argument is needed", 1)
}
maddr, err := ma.NewMultiaddr(addr)
checkErr("parsing multiaddress", err)
resp, cerr := globalClient.PeerAdd(maddr)
formatResponse(c, resp, cerr)
return nil
},
},
{
Name: "rm",
Usage: "remove a peer from the Cluster",
Expand Down