workspace

package
v0.44.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscoveredRepo

type DiscoveredRepo struct {
	Path   string // absolute path to the repository
	Name   string // directory name
	Remote string // origin remote URL
}

DiscoveredRepo represents a git repository found during scanning.

func ScanRepoDirs

func ScanRepoDirs(ctx context.Context, dirs []string, gitExec git.Git) ([]DiscoveredRepo, error)

ScanRepoDirs scans the given directories for git repositories. Each directory in dirs is expected to contain subdirectories that are git repos. Repositories that fail to scan are silently skipped.

Jump to

Keyboard shortcuts

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