MCPcopy Create free account
hub / github.com/Hidden-Node/GooseRelayVPN-AndroidClient / summarizeScriptURLs

Function summarizeScriptURLs

cmd/client/main.go:97–113  ·  view source on GitHub ↗
(scriptURLs []string)

Source from the content-addressed store, hash-verified

95}
96
97func summarizeScriptURLs(scriptURLs []string) string {
98 if len(scriptURLs) == 0 {
99 return "(none)"
100 }
101 maxShown := len(scriptURLs)
102 if maxShown > 3 {
103 maxShown = 3
104 }
105 parts := make([]string, 0, maxShown)
106 for i := 0; i < maxShown; i++ {
107 parts = append(parts, shortScriptKey(scriptURLs[i]))
108 }
109 if len(scriptURLs) > maxShown {
110 parts = append(parts, fmt.Sprintf("+%d more", len(scriptURLs)-maxShown))
111 }
112 return strings.Join(parts, ", ")
113}
114
115const gooseBanner = `
116⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣤⣄⡀⠀⠀⠀⠀⠀⠀

Callers 1

mainFunction · 0.85

Calls 1

shortScriptKeyFunction · 0.70

Tested by

no test coverage detected