mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-29 01:12:24 +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
|
// 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)
|
||||||
|
Reference in New Issue
Block a user