MCPcopy Create free account
hub / github.com/SamNet-dev/snix / rotationLabel

Function rotationLabel

tui/settings.go:180–189  ·  view source on GitHub ↗
(r []bypass.Name)

Source from the content-addressed store, hash-verified

178}
179
180func 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.

Callers 1

itemsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected