MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / truncate

Function truncate

tui/status.go:752–760  ·  view source on GitHub ↗
(s string, maxLen int)

Source from the content-addressed store, hash-verified

750}
751
752func truncate(s string, maxLen int) string {
753 if len(s) <= maxLen {
754 return s
755 }
756 if maxLen <= 3 {
757 return s[:maxLen]
758 }
759 return s[:maxLen-3] + "..."
760}
761
762func RunStatus(client *api.Client, monitoring bool, instances []api.Instance, verbose bool) error {
763 ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt)

Callers 4

renderTableMethod · 0.70
formatStatusMethod · 0.70
renderTableMethod · 0.70
formatStatusMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected