MCPcopy
hub / github.com/cli/cli / twinkle

Function twinkle

pkg/cmd/repo/credits/credits.go:271–278  ·  view source on GitHub ↗
(starLine string)

Source from the content-addressed store, hash-verified

269}
270
271func twinkle(starLine string) string {
272 starLine = strings.ReplaceAll(starLine, ".", "P")
273 starLine = strings.ReplaceAll(starLine, "+", "A")
274 starLine = strings.ReplaceAll(starLine, "*", ".")
275 starLine = strings.ReplaceAll(starLine, "P", "+")
276 starLine = strings.ReplaceAll(starLine, "A", "*")
277 return starLine
278}
279
280func getColor(x int) string {
281 rainbow := []string{

Callers 1

creditsRunFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected