Documentation
¶
Overview ¶
Package analyze provides functionality for analyzing directory structures
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
Exporter handles exporting nodes to different formats
func NewExporter ¶
NewExporter creates a new exporter
func (*Exporter) ToTreeForBuild ¶
ToTree actually returns the simple format for build compatibility
func (*Exporter) ToTreeSimple ¶
ToTreeSimple exports nodes as simple indented format (compatible with build command)
type Filter ¶
type Filter struct {
// contains filtered or unexported fields
}
Filter handles filtering of unwanted files and directories
func NewFilter ¶
func NewFilter() *Filter
NewFilter creates a new filter with default ignore patterns
func (*Filter) GetFilteredExtension ¶
GetFilteredExtension checks if an extension should be filtered
type LocalAnalyzer ¶
type LocalAnalyzer struct {
// contains filtered or unexported fields
}
LocalAnalyzer analyzes local directory structures
func NewLocalAnalyzer ¶
func NewLocalAnalyzer(sourcePath string, maxDepth int) *LocalAnalyzer
NewLocalAnalyzer creates a new local directory analyzer
func (*LocalAnalyzer) Analyze ¶
func (a *LocalAnalyzer) Analyze() (*Result, error)
Analyze performs the analysis of the local directory
type Result ¶
type Result struct {
Nodes []*parse.Node // The analyzed structure
DirCount int // Number of directories found
FileCount int // Number of files found
FilteredCount int // Number of items filtered out
TotalScanned int // Total items scanned before filtering
}
Result contains the analysis results