1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-29 01:12:24 +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 // and returns a command that lists the subcommands in that root
func CommandsCmd(root *cmds.Command) *cmds.Command { func CommandsCmd(root *cmds.Command) *cmds.Command {
return &cmds.Command{ return &cmds.Command{
Description: "List all available commands.", Helptext: cmds.HelpText{
Help: `Lists all available commands (and subcommands) and exits. Tagline: "List all available commands.",
`, ShortDescription: `Lists all available commands (and subcommands) and exits.`,
},
Run: func(req cmds.Request) (interface{}, error) { Run: func(req cmds.Request) (interface{}, error) {
root := outputCommand("ipfs", root) root := outputCommand("ipfs", root)