Most of the new models have been reimplemented

This commit is contained in:
Leon Mika 2022-03-27 23:19:38 +00:00 committed by GitHub
parent 7a5584cf9a
commit aa828df3ae
19 changed files with 226 additions and 156 deletions

View file

@ -23,9 +23,9 @@ func NewCommandController(commands map[string]uimodels.Operation) *CommandContro
func (c *CommandController) Prompt() uimodels.Operation {
return uimodels.OperationFn(func(ctx context.Context) error {
uiCtx := uimodels.Ctx(ctx)
uiCtx.Send(events.PromptForInput{
uiCtx.Send(events.PromptForInputMsg{
Prompt: ":",
OnDone: c.Execute(),
// OnDone: c.Execute(),
})
return nil
})