(r []bypass.Name)
| 178 | } |
| 179 | |
| 180 | func rotationLabel(r []bypass.Name) string { |
| 181 | if len(r) == 0 { |
| 182 | return mutedStyle.Render("off (single strategy)") |
| 183 | } |
| 184 | parts := make([]string, 0, len(r)) |
| 185 | for _, n := range r { |
| 186 | parts = append(parts, string(n)) |
| 187 | } |
| 188 | return okStyle.Render("on ") + mutedStyle.Render("("+strings.Join(parts, ", ")+")") |
| 189 | } |
| 190 | |
| 191 | // persist writes the current in-memory config back to disk and asks the app |
| 192 | // to reload so everything reflects the change. |