Documentation
¶
Overview ¶
Package call provides batching primitives for executing repository-scoped work concurrently with shared cancellation and output semantics.
Command packages typically execute Do(...) with a Func implementation to apply a unit of work across a batch of repositories; output for each repository is streamed through the configured output.Channel.
When a workflow needs multiple sequential steps, Wrap(...) combines several Func values into one atomically-callable implementation.
The Exec helper creates a Func for command execution, including stdout/stderr streaming and exit-status error handling.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Do ¶
Do executes the provided Func on each repository, operating asynchronously by default with configurable concurrency limits. Repository aliases are also expanded here to allow for configurable repository grouping. Output formatting can be fully customized by optionally providing one or more OutputHandler functions. Each repository will also be cloned first if it is missing from the local file system.
Types ¶
type Error ¶ added in v1.0.0
type Error struct {
// contains filtered or unexported fields
}
Error wraps runtime errors that occur during subprocess execution.
type Func ¶ added in v0.10.0
Func defines an atomic unit of work on a repository. Output should be sent to the channel, which must remain open. Closing a channel from within the context of a Func will result in a panic.