tasks

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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

func RunHeadless(tasks taskin.Tasks, progressOut io.Writer) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL