Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

125 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repo Analyzer

go library to discover various files of interest in a repository

Usage (Library)

Installation

go get -u github.com/cidverse/repoanalyzer

Example

result := analyzer.ScanDirectory("/my-project")
for k, v := range result {
    fmt.Printf("MODULE %d: %+v\n", k, v)
}

Custom Example

You can add your own scanners and enable result caching.

myAnalyzer := analyzer.NewAnalyzer()
myAnalyzer.EnableCache(true)
// myAnalyzer.Add(yourCustomScanner)
result := myAnalyzer.Scan("/my-project")
for k, v := range result {
    fmt.Printf("MODULE %d: %+v\n", k, v)
}

Usage (CLI)

...

License

Released under the MIT License.

About

a go library to analyze a project directory to determinate all modules / languages / build-systems used

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages