github.com/wtfutil/wtf@v0.43.0/wtf/wtfable.go (about) 1 package wtf 2 3 import ( 4 "github.com/wtfutil/wtf/cfg" 5 6 "github.com/rivo/tview" 7 ) 8 9 // Wtfable is the interface that enforces WTF system capabilities on a module 10 type Wtfable interface { 11 Enablable 12 Schedulable 13 Stoppable 14 15 BorderColor() string 16 ConfigText() string 17 FocusChar() string 18 Focusable() bool 19 HelpText() string 20 Name() string 21 QuitChan() chan bool 22 SetFocusChar(string) 23 TextView() *tview.TextView 24 25 CommonSettings() *cfg.Common 26 }