Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitError ¶
type GitError struct {
Err error
}
GitError indicates the path is not a git repository.
type Option ¶
type Option func(*Service)
Option configures a Service.
func WithOpener ¶
WithOpener sets the VCS opener (for testing).
type ScanResult ¶
type ScanResult struct {
Files []string
LanguageGroups map[parser.Language][]string
RepoRoot string
}
ScanResult contains the result of a file scan.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service provides file scanning functionality.
func (*Service) FilterBySize ¶
FilterBySize filters files by maximum size.
func (*Service) ScanPaths ¶
func (s *Service) ScanPaths(paths []string) (*ScanResult, error)
ScanPaths scans multiple paths and returns all found source files.
func (*Service) ScanPathsForGit ¶
func (s *Service) ScanPathsForGit(paths []string, gitRequired bool) (*ScanResult, error)
ScanPathsForGit scans paths and also resolves the git repository root. Returns an error if not in a git repository when gitRequired is true.
Click to show internal directories.
Click to hide internal directories.