(codespace codespace)
| 112 | } |
| 113 | |
| 114 | func formatGitStatus(codespace codespace) string { |
| 115 | branchWithGitStatus := codespace.branchWithGitStatus() |
| 116 | |
| 117 | // Format the commits ahead/behind with proper pluralization |
| 118 | commitsAhead := text.Pluralize(codespace.GitStatus.Ahead, "commit") |
| 119 | commitsBehind := text.Pluralize(codespace.GitStatus.Behind, "commit") |
| 120 | |
| 121 | return fmt.Sprintf("%s - %s ahead, %s behind", branchWithGitStatus, commitsAhead, commitsBehind) |
| 122 | } |
| 123 | |
| 124 | func formatRetentionPeriodDays(codespace codespace) string { |
| 125 | days := codespace.RetentionPeriodMinutes / minutesInDay |
no test coverage detected