MCPcopy Create free account
hub / github.com/algolia/cli / describeCommand

Function describeCommand

internal/docs/docs.go:128–134  ·  view source on GitHub ↗
(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

126}
127
128func describeCommand(cmd *cobra.Command) Command {
129 command := newCommand(cmd)
130 if cmd.HasAvailableSubCommands() {
131 command.SubCommands = getCommands(cmd)
132 }
133 return command
134}
135
136// DescribeCommand returns a machine-readable description of a command.
137func DescribeCommand(cmd *cobra.Command) Command {

Callers 2

GenMdxTreeFunction · 0.85
DescribeCommandFunction · 0.85

Calls 2

newCommandFunction · 0.85
getCommandsFunction · 0.85

Tested by

no test coverage detected