20 lines
306 B
Go
20 lines
306 B
Go
package token
|
|
|
|
import (
|
|
"github.com/ayn2op/tview"
|
|
"github.com/ayn2op/tview/textinput"
|
|
)
|
|
|
|
type TokenMsg string
|
|
|
|
type (
|
|
tokenMsg textinput.Change
|
|
focusButtonMsg struct{}
|
|
submitMsg struct{}
|
|
)
|
|
|
|
func submitToken(token string) tview.Cmd {
|
|
return func() tview.Msg {
|
|
return TokenMsg(token)
|
|
}
|
|
}
|