Rename event handling

Fixes #167
This commit is contained in:
erroneousboat 2019-05-18 12:16:27 +02:00
parent 9b9c8e993c
commit bc11d9891a
2 changed files with 4 additions and 3 deletions

View File

@ -49,7 +49,8 @@ var actionMap = map[string]func(*context.AppContext){
"help": actionHelp,
}
func RegisterEventHandlers(ctx *context.AppContext) {
// Initialize will start a combination of event handlers and 'background tasks'
func Initialize(ctx *context.AppContext) {
// Keyboard events
eventHandler(ctx)

View File

@ -108,8 +108,8 @@ func main() {
os.Exit(0)
}
// Register handlers
handlers.RegisterEventHandlers(ctx)
// Initialize handlers
handlers.Initialize(ctx)
termui.Loop()
}