提交 973a8f5c 作者: Juan Batiz-Benet

cmds2: commands

上级 3e7592f2
......@@ -15,9 +15,10 @@ type Command struct {
// and returns a command that lists the subcommands in that root
func CommandsCmd(root *cmds.Command) *cmds.Command {
return &cmds.Command{
Description: "List all available commands.",
Help: `Lists all available commands (and subcommands) and exits.
`,
Helptext: cmds.HelpText{
Tagline: "List all available commands.",
ShortDescription: `Lists all available commands (and subcommands) and exits.`,
},
Run: func(req cmds.Request) (interface{}, error) {
root := outputCommand("ipfs", root)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论