showExecutingModal displays a modal indicating command is running
(command string)
| 281 | |
| 282 | // showExecutingModal displays a modal indicating command is running |
| 283 | func (u *UIManager) showExecutingModal(command string) { |
| 284 | pages := u.app.Pages() |
| 285 | |
| 286 | modal := tview.NewModal(). |
| 287 | SetText(fmt.Sprintf("Executing:\n\n%s\n\nPlease wait...", command)). |
| 288 | AddButtons([]string{"Running"}) |
| 289 | |
| 290 | pages.AddPage("executingCommand", modal, true, true) |
| 291 | } |
| 292 | |
| 293 | // ShowResultModal displays the command execution result in a modal |
| 294 | func (u *UIManager) ShowResultModal(result ExecutionResult, onClose func()) { |
no test coverage detected