Validate providers and retain complete run debugging context
This commit is contained in:
@@ -38,6 +38,6 @@ func (m Model) debugRun() (tea.Model, tea.Cmd) {
|
||||
m.appendLine("debug: pipelines CLI is unavailable: " + err.Error())
|
||||
return m, nil
|
||||
}
|
||||
cmd := exec.Command(cli, "--url", m.url, "debug", fmt.Sprint(id))
|
||||
return m, tea.ExecProcess(cmd, func(err error) tea.Msg { return debugClosedMsg{err} })
|
||||
cmd := exec.Command(cli, "--url", m.url, "debug", fmt.Sprint(id), "--yes")
|
||||
return m.confirmMutation(fmt.Sprintf("Open a new debugging session for run #%d?", id), func() tea.Cmd { return tea.ExecProcess(cmd, func(err error) tea.Msg { return debugClosedMsg{err} }) })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user