filecollector

package
v0.0.0-...-88ab25c Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Path  typedpath.SlashPath
	IsDir bool
}

type FileAggregator

type FileAggregator func(rootDirAbs typedpath.RawPath, opts *Options, ch chan<- Entry) error

func NewFileAggregator

func NewFileAggregator(gitLsFiles git.LsFiles, findRepo repofinder.RepoFinder, logger logging.Logger) FileAggregator

func StubFileAggregator

func StubFileAggregator(result []Entry, err error) FileAggregator

func StubSuccessfulFileAggregator

func StubSuccessfulFileAggregator(result []Entry) FileAggregator

type FileCollector

type FileCollector func(projRootAbs typedpath.RawPath, targetRel typedpath.RawPath, opts *Options, writer chan<- Entry) error

func New

func New(gitLsFiles git.LsFiles, logger logging.Logger) FileCollector

type Options

type Options struct {
	IgnoreCase bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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