MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / showExecutingModal

Method showExecutingModal

internal/plugins/command-runner/ui.go:283–291  ·  view source on GitHub ↗

showExecutingModal displays a modal indicating command is running

(command string)

Source from the content-addressed store, hash-verified

281
282// showExecutingModal displays a modal indicating command is running
283func (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
294func (u *UIManager) ShowResultModal(result ExecutionResult, onClose func()) {

Callers 2

executeAndShowResultMethod · 0.95

Calls 3

AddButtonsMethod · 0.80
PagesMethod · 0.65
SetTextMethod · 0.45

Tested by

no test coverage detected