put-items: started adding some basic commands for putting items

This commit is contained in:
Leon Mika 2022-05-26 09:01:39 +10:00
parent 3319a9d4aa
commit 174bab36c3
10 changed files with 203 additions and 79 deletions

View file

@ -43,8 +43,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)