Documentation
¶
Overview ¶
Package tasks is a shim over fumeapp/taskin for headless execution.
Rationale: taskin's DisableUI flag only strips ANSI escapes — it still writes task-status lines to os.Stdout, which contaminates --json output. RunHeadless walks the same task tree without invoking the bubbletea runner so stdout stays clean.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunHeadless ¶
RunHeadless executes every task in the tree in order, in the caller's goroutine, without the bubbletea runner. Task.Progress calls still update internal state and Task.Title mutations still work; the difference is that nothing reaches stdout.
When progressOut is non-nil, one line per completed task is written there (typically the renderer's stderr) so users get a coarse audit trail even without the TUI.
Types ¶
This section is empty.