Skip to content

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

License

Notifications You must be signed in to change notification settings

cidverse/repoanalyzer

Repository files navigation

Repo Analyzer

go library to find all modules / languages / build-systems / specifications in a project

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages