提交 ab4b2804 作者: Richard Littauer

Alphabetized swarm subcmds

License: MIT
Signed-off-by: 's avatarRichard Littauer <richard.littauer@gmail.com>
上级 8ab1b8b2
...@@ -29,11 +29,11 @@ var SwarmCmd = &cmds.Command{ ...@@ -29,11 +29,11 @@ var SwarmCmd = &cmds.Command{
Helptext: cmds.HelpText{ Helptext: cmds.HelpText{
Tagline: "Swarm inspection tool.", Tagline: "Swarm inspection tool.",
Synopsis: ` Synopsis: `
ipfs swarm peers - List peers with open connections
ipfs swarm addrs - List known addresses. Useful to debug. ipfs swarm addrs - List known addresses. Useful to debug.
ipfs swarm connect <address> - Open connection to a given address ipfs swarm connect <address> - Open connection to a given address
ipfs swarm disconnect <address> - Close connection to a given address ipfs swarm disconnect <address> - Close connection to a given address
ipfs swarm filters - Manipulate filters addresses ipfs swarm filters - Manipulate filters addresses
ipfs swarm peers - List peers with open connections
`, `,
ShortDescription: ` ShortDescription: `
'ipfs swarm' is a tool to manipulate the network swarm. The swarm is the 'ipfs swarm' is a tool to manipulate the network swarm. The swarm is the
...@@ -42,11 +42,11 @@ ipfs peers in the internet. ...@@ -42,11 +42,11 @@ ipfs peers in the internet.
`, `,
}, },
Subcommands: map[string]*cmds.Command{ Subcommands: map[string]*cmds.Command{
"peers": swarmPeersCmd,
"addrs": swarmAddrsCmd, "addrs": swarmAddrsCmd,
"connect": swarmConnectCmd, "connect": swarmConnectCmd,
"disconnect": swarmDisconnectCmd, "disconnect": swarmDisconnectCmd,
"filters": swarmFiltersCmd, "filters": swarmFiltersCmd,
"peers": swarmPeersCmd,
}, },
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论