events.go 261 B

1234567891011121314151617
  1. package token
  2. import (
  3. "github.com/ayn2op/tview"
  4. "github.com/gdamore/tcell/v3"
  5. )
  6. type TokenEvent struct {
  7. tcell.EventTime
  8. Token string
  9. }
  10. func tokenCommand(token string) tview.Command {
  11. return func() tview.Event {
  12. return &TokenEvent{Token: token}
  13. }
  14. }