INNER CODE UNIT · Go
initializeAnalyzeExecutor
Legit-Labs/legitify · cmd/analyze_executor.go:23
func initializeAnalyzeExecutor(manager collectors_manager.CollectorManager,
analyzer analyzers.Analyzer,
enricherManager enricher.EnricherManager,
outputer outputer.Outputer,
ctx context.Context) *analyzeExecutor {
return &analyzeExecutor{
manager: manager,
analyzer: analyzer,
enricherManager: enricherManager,
out: outputer,
ctx: ctx,
}
}
func (r *analyzeExecutor) Run() error {
defer errlog.FlushAll()
// let progress bar run in the background