Documentation
¶
Overview ¶
Package progress provides progress reporting for batch conversions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONLog ¶
type JSONLog struct {
// contains filtered or unexported fields
}
JSONLog emits one JSON object per event (suitable for --json / CI=1).
func NewJSONLog ¶
NewJSONLog creates a JSON-line reporter writing to w.
type Plain ¶
type Plain struct {
// contains filtered or unexported fields
}
Plain writes one line per job to w (suitable for non-TTY or --quiet mode).
type Reporter ¶
type Reporter interface {
// Start signals that a batch of n jobs is beginning.
Start(n int)
// Update is called after each job completes (successfully or not).
Update(done, total int, name string, err error)
// Done signals that all jobs have finished.
Done()
}
Reporter is the interface all progress implementations satisfy.
Click to show internal directories.
Click to hide internal directories.