@cryptotaxi247 / kubo / commits / 973a8f5cb

cmds2: commands

Juan Batiz-Benet committed Nov 12, 2014 at 16:05 UTC 973a8f5cb10c30ed312a889605298be16a814c5b
1 file changed +4 -3
core/commands2/commands.go
+4 -3
@@ -15,9 +15,10 @@ type Command struct {
15 // and returns a command that lists the subcommands in that root
16 func CommandsCmd(root *cmds.Command) *cmds.Command {
17 return &cmds.Command{
18 - Description: "List all available commands.",
19 - Help: `Lists all available commands (and subcommands) and exits.
20 - `,
18 + Helptext: cmds.HelpText{
19 + Tagline: "List all available commands.",
20 + ShortDescription: `Lists all available commands (and subcommands) and exits.`,
21 + },
22
23 Run: func(req cmds.Request) (interface{}, error) {
24 root := outputCommand("ipfs", root)