(s string, maxLen int)
| 750 | } |
| 751 | |
| 752 | func 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 | |
| 762 | func RunStatus(client *api.Client, monitoring bool, instances []api.Instance, verbose bool) error { |
| 763 | ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt) |
no outgoing calls
no test coverage detected