提交 d3b1bb4e 作者: Richard Littauer

Formatted diag net comments

Also added default notice aboue plain text

License: MIT
Signed-off-by: 's avatarRichard Littauer <richard.littauer@gmail.com>
上级 0de71043
...@@ -66,12 +66,12 @@ timeout. If the timeout is too small, some peers may not be reached. ...@@ -66,12 +66,12 @@ timeout. If the timeout is too small, some peers may not be reached.
The default timeout is 20 seconds. The default timeout is 20 seconds.
The 'vis' option may be used to change the output format. The 'vis' option may be used to change the output format.
four formats are supported: Four formats are supported:
* plain text - easy to read * plain text - Easy to read. Default.
* d3 - json ready to be fed into d3view * d3 - json ready to be fed into d3view
* dot - graphviz format * dot - graphviz format
The d3 format will output a json object ready to be consumed by The 'd3' format will output a json object ready to be consumed by
the chord network viewer, available at the following hash: the chord network viewer, available at the following hash:
/ipfs/QmbesKpGyQGd5jtJFUGEB1ByPjNFpukhnKZDnkfxUiKn38 /ipfs/QmbesKpGyQGd5jtJFUGEB1ByPjNFpukhnKZDnkfxUiKn38
...@@ -87,7 +87,7 @@ that consume the dot format to generate graphs of the network. ...@@ -87,7 +87,7 @@ that consume the dot format to generate graphs of the network.
}, },
Options: []cmds.Option{ Options: []cmds.Option{
cmds.StringOption("vis", "Output vis. one of: "+strings.Join(visFmts, ", ")), cmds.StringOption("vis", "Output vis. One of: "+strings.Join(visFmts, ", ")),
}, },
Run: func(req cmds.Request, res cmds.Response) { Run: func(req cmds.Request, res cmds.Response) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论