mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-28 17:03:58 +08:00
cmds2: commands
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user