Skip to content

Commit

Permalink
revert: run commands without tea.ExecProcess
Browse files Browse the repository at this point in the history
  • Loading branch information
dlvhdr committed Aug 12, 2024
1 parent b409fd1 commit 592d787
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ui/components/tasks/pr.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,18 @@ func fireTask(ctx *context.ProgramContext, task GitHubTask) tea.Cmd {
}

startCmd := ctx.StartTask(start)
c := exec.Command("gh", task.Args...)
return tea.Batch(startCmd, tea.ExecProcess(c, func(err error) tea.Msg {
return tea.Batch(startCmd, func() tea.Msg {
c := exec.Command("gh", task.Args...)

err := c.Run()
return constants.TaskFinishedMsg{
TaskId: task.Id,
SectionId: task.Section.Id,
SectionType: task.Section.Type,
TaskId: task.Id,
Err: err,
Msg: task.Msg(c, err),
}
}))
})
}

func ReopenPR(ctx *context.ProgramContext, section SectionIdentifer, pr data.RowData) tea.Cmd {
Expand Down

0 comments on commit 592d787

Please sign in to comment.