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

Method removeExcluded

commandline/autocomplete_handler.go:212–220  ·  view source on GitHub ↗
(values []string, exclude []string)

Source from the content-addressed store, hash-verified

210}
211
212func (a autoCompleteHandler) removeExcluded(values []string, exclude []string) []string {
213 result := []string{}
214 for _, entry := range values {
215 if !a.contains(exclude, entry) {
216 result = append(result, entry)
217 }
218 }
219 return result
220}
221
222func (a autoCompleteHandler) contains(values []string, value string) bool {
223 for _, v := range values {

Callers 2

searchCommandsMethod · 0.95
searchFlagsMethod · 0.95

Calls 1

containsMethod · 0.95

Tested by

no test coverage detected