MCPcopy Create free account
hub / github.com/cli/cli / addSegment

Function addSegment

pkg/search/query.go:368–377  ·  view source on GitHub ↗
(inrune, segment []rune)

Source from the content-addressed store, hash-verified

366}
367
368func addSegment(inrune, segment []rune) []rune {
369 if len(segment) == 0 {
370 return inrune
371 }
372 if len(inrune) != 0 {
373 inrune = append(inrune, '-')
374 }
375 inrune = append(inrune, segment...)
376 return inrune
377}

Callers 1

camelToKebabFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected