MCPcopy
hub / github.com/spf13/cobra / SetCompletionCommandGroupID

Method SetCompletionCommandGroupID

command.go:352–355  ·  view source on GitHub ↗

SetCompletionCommandGroupID sets the group id of the completion command.

(groupID string)

Source from the content-addressed store, hash-verified

350
351// SetCompletionCommandGroupID sets the group id of the completion command.
352func (c *Command) SetCompletionCommandGroupID(groupID string) {
353 // completionCommandGroupID is used if no completion command is defined by the user
354 c.Root().completionCommandGroupID = groupID
355}
356
357// SetHelpTemplate sets help template to be used. Application can use it to set custom template.
358func (c *Command) SetHelpTemplate(s string) {

Callers 3

TestUsageCompletionGroupFunction · 0.80
TestUngroupedCommandFunction · 0.80

Calls 1

RootMethod · 0.95

Tested by 3

TestUsageCompletionGroupFunction · 0.64
TestUngroupedCommandFunction · 0.64