MCPcopy Index your code
hub / github.com/abiosoft/ishell / hasSubcommand

Method hasSubcommand

command.go:65–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63}
64
65func (c *Cmd) hasSubcommand() bool {
66 if len(c.children) > 1 {
67 return true
68 }
69 if _, ok := c.children["help"]; !ok {
70 return len(c.children) > 0
71 }
72 return false
73}
74
75// HelpText returns the computed help of the command and its subcommands.
76func (c Cmd) HelpText() string {

Callers 1

HelpTextMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected