MCPcopy Create free account
hub / github.com/UiPath/uipathcli / findCommand

Method findCommand

commandline/autocomplete_handler.go:160–167  ·  view source on GitHub ↗
(name string, commands []*CommandDefinition)

Source from the content-addressed store, hash-verified

158}
159
160func (a autoCompleteHandler) findCommand(name string, commands []*CommandDefinition) *CommandDefinition {
161 for _, command := range commands {
162 if command.Name == name {
163 return command
164 }
165 }
166 return nil
167}
168
169func (a autoCompleteHandler) searchCommands(word string, commands []*CommandDefinition, exclude []string) []string {
170 result := []string{}

Callers 1

FindMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected