runner

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package runner provides a parallel execution engine for multi-repo git operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpFunc

type OpFunc func(repo *db.Repository) (message string, skipReason string, err error)

OpFunc is the function signature for a repository operation. Return (message, skip reason, error). If skipReason != "" the result is Skipped.

type Result

type Result struct {
	Repo    *db.Repository
	Status  Status
	Message string
	Err     error
}

Result holds the outcome of running an operation against one repository.

func Run

func Run(repos []*db.Repository, op OpFunc) []Result

Run executes op against each repo in parallel, streaming results to stdout. It returns the collected results after all operations complete.

type Status

type Status int

Status represents the outcome of an operation on a single repository.

const (
	StatusSuccess Status = iota
	StatusSkipped
	StatusError
)

Jump to

Keyboard shortcuts

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