Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecErrors ¶
func ExecErrors(results []ExecResult) error
ExecErrors returns a combined error if any results have non-zero exit codes or errors.
func WriteResults ¶
func WriteResults(w io.Writer, results []ExecResult)
WriteResults writes all result stdout and stderr to w.
Types ¶
type ExecOptions ¶
type ExecOptions struct {
MaxConcurrency int // 0 → runtime.NumCPU()
Timeout time.Duration // 0 → no timeout
Async bool // false → serial run with stdin passthrough
}
ExecOptions configures a RunParallel invocation.
type ExecResult ¶
ExecResult holds the outcome of running a git command in one repo.
func RunParallel ¶
func RunParallel(repos []repo.Repo, args []string, opts ExecOptions) []ExecResult
RunParallel executes git args in each repo. Async=false: stdin passes through; output not prefixed (one repo at a time). Async=true: stdin suppressed; output captured and prefixed "[name]".
Click to show internal directories.
Click to hide internal directories.