Call Wait() after all launches have started
This commit is contained in:
parent
05ebff0260
commit
3c47906594
1 changed files with 10 additions and 7 deletions
11
main.go
11
main.go
|
@ -109,13 +109,16 @@ func launch(m model) tea.Cmd {
|
|||
result += statusMsg(fmt.Sprintf("%v\n", err))
|
||||
log.Fatalf("Error launching: %v\n", err)
|
||||
}
|
||||
/*
|
||||
err = item.command.Wait()
|
||||
}
|
||||
}
|
||||
|
||||
for r, item := range m.choices {
|
||||
if _, ok := m.selected[r]; ok {
|
||||
err := item.command.Wait()
|
||||
if err != nil {
|
||||
result += statusMsg(fmt.Sprintf("%v\n", err))
|
||||
log.Fatalf("Error during wait: %v\n", err)
|
||||
log.Fatalf("Error during Wait(): %v\n", err)
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue