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

Function maxOne

tui/profiles.go:153–158  ·  view source on GitHub ↗
(v int)

Source from the content-addressed store, hash-verified

151}
152
153func maxOne(v int) int {
154 if v < 1 {
155 return 1
156 }
157 return v
158}
159
160// setActive writes the new active profile to disk, then asks the app to reload.
161func (m profilesModel) setActive(name string) tea.Cmd {

Callers 3

renderProfileDetailFunction · 0.85
itemsMethod · 0.85
UpdateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected