scanner

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package scanner discovers git repositories under a projects directory, respecting .katazuke index files for grouping and ignoring subdirectories.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Scan

func Scan(rootPath string, opts Options) ([]string, error)

Scan discovers git repositories under rootPath.

The algorithm:

  1. If a .katazuke file exists in a directory, parse it for groups/ignores and recurse into group subdirectories.
  2. If no .katazuke file exists, treat all immediate children as potential repositories.
  3. Hidden directories (starting with ".") are always skipped.
  4. Symlink cycles are detected via visited-path tracking.

Types

type Options

type Options struct {
	ExcludePatterns []string
}

Options controls scanning behavior.

Jump to

Keyboard shortcuts

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