Changes made as part of merge

This commit is contained in:
Leon Mika 2022-07-14 21:25:27 +10:00
parent ffca588a2c
commit 716adbdce5
3 changed files with 47 additions and 54 deletions

View file

@ -56,8 +56,9 @@ func main() {
tableService := tables.NewService(dynamoProvider)
tableReadController := controllers.NewTableReadController(tableService, *flagTable)
tableWriteController := controllers.NewTableWriteController(tableService, tableReadController)
state := controllers.NewState()
tableReadController := controllers.NewTableReadController(state, tableService, *flagTable)
tableWriteController := controllers.NewTableWriteController(state, tableService, tableReadController)
commandController := commandctrl.NewCommandController()
model := ui.NewModel(tableReadController, tableWriteController, commandController)
@ -67,7 +68,7 @@ func main() {
p := tea.NewProgram(model, tea.WithAltScreen())
closeFn := logging.EnableLogging()
closeFn := logging.EnableLogging(*flagDebug)
defer closeFn()
// Pre-determine if layout has dark background. This prevents calls for creating a list to hang.