tickElapsed returns a tea.Cmd that ticks every second for the elapsed time display.
()
| 1618 | |
| 1619 | // tickElapsed returns a tea.Cmd that ticks every second for the elapsed time display. |
| 1620 | func tickElapsed() tea.Cmd { |
| 1621 | return tea.Tick(time.Second, func(time.Time) tea.Msg { |
| 1622 | return elapsedTickMsg{} |
| 1623 | }) |
| 1624 | } |
| 1625 | |
| 1626 | // runWorktreeStep runs a worktree setup step asynchronously. |
| 1627 | func (a *App) runWorktreeStep(step WorktreeSpinnerStep, baseDir, worktreePath, branchName string) tea.Cmd { |
no test coverage detected