1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-28 08:47:42 +08:00

cmds2: commands

This commit is contained in:
Juan Batiz-Benet
2014-11-12 16:05:15 -08:00
parent 3e7592f2cc
commit 973a8f5cb1

View File

@ -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)