MCPcopy Create free account
hub / github.com/OverloadBlitz/cloudcent-cli / truncate

Function truncate

cmd/history.go:53–58  ·  view source on GitHub ↗
(s string, n int)

Source from the content-addressed store, hash-verified

51}
52
53func truncate(s string, n int) string {
54 if len(s) <= n {
55 return s
56 }
57 return s[:n-3] + "..."
58}
59
60func repeat(s string, n int) string {
61 result := ""

Callers 1

runHistoryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected