Documentation
¶
Overview ¶
Package setup provides initialization and configuration functions
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureWalker ¶
func ConfigureWalker(cfg WalkerConfig, infoLog InfoLogger) ( *ignore.IgnoreMatcher, []walker.Option, error, )
ConfigureWalker sets up an ignore matcher and walker options based on the config
Types ¶
type InfoLogger ¶
type InfoLogger func(format string, args ...interface{})
InfoLogger wraps the Info method for status updates
type WalkerConfig ¶
type WalkerConfig struct {
RootDir string
Concurrent bool
MaxWorkers int
MaxFileSizeMB int64
Extensions string
IgnoreHidden bool
IgnoreGit bool
CustomIgnore string
IncludeBinary bool
ShowProgress bool
Ctx context.Context
Quiet bool
Logger utils.Logger
}
WalkerConfig holds all parameters needed to configure a directory walker
Click to show internal directories.
Click to hide internal directories.