openapi
This commit is contained in:
parent
020e0ca039
commit
99af6146d5
80 changed files with 13944 additions and 295 deletions
18
pkg/tui/util/util.go
Normal file
18
pkg/tui/util/util.go
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
package util
|
||||
|
||||
import (
|
||||
tea "github.com/charmbracelet/bubbletea"
|
||||
)
|
||||
|
||||
func CmdHandler(msg tea.Msg) tea.Cmd {
|
||||
return func() tea.Msg {
|
||||
return msg
|
||||
}
|
||||
}
|
||||
|
||||
func Clamp(v, low, high int) int {
|
||||
if high < low {
|
||||
low, high = high, low
|
||||
}
|
||||
return min(high, max(low, v))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue