MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / firstCommandRunes

Function firstCommandRunes

tools/bash/permissions.go:221–230  ·  view source on GitHub ↗
(text string, limit int)

Source from the content-addressed store, hash-verified

219}
220
221func firstCommandRunes(text string, limit int) string {
222 if limit <= 0 {
223 return ""
224 }
225 runes := []rune(text)
226 if len(runes) <= limit {
227 return text
228 }
229 return string(runes[:limit])
230}

Callers 1

generateRuleSuggestionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected