Skip to content

Commit 4199cbb

Browse files
committed
refactor(tea): add context in Tea NewProgram
- Add context to `tea.NewProgram` initialization in `commitCmd` Signed-off-by: appleboy <[email protected]>
1 parent 9a4481b commit 4199cbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/commit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ var commitCmd = &cobra.Command{
311311

312312
if change {
313313
m := initialPrompt(commitMessage)
314-
p := tea.NewProgram(m)
314+
p := tea.NewProgram(m, tea.WithContext(cmd.Context()))
315315
if _, err := p.Run(); err != nil {
316316
return err
317317
}

0 commit comments

Comments
 (0)