提交 42062a72 作者: Jeromy Johnson

Merge pull request #2587 from ipfs/feature/alphabetize-swarm

Alphabetized swarm subcmds
...@@ -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 for debugging.
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,
}, },
} }
...@@ -90,7 +90,7 @@ var swarmPeersCmd = &cmds.Command{ ...@@ -90,7 +90,7 @@ var swarmPeersCmd = &cmds.Command{
var swarmAddrsCmd = &cmds.Command{ var swarmAddrsCmd = &cmds.Command{
Helptext: cmds.HelpText{ Helptext: cmds.HelpText{
Tagline: "List known addresses. Useful to debug.", Tagline: "List known addresses. Useful for debugging.",
ShortDescription: ` ShortDescription: `
'ipfs swarm addrs' lists all addresses this node is aware of. 'ipfs swarm addrs' lists all addresses this node is aware of.
`, `,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论