Add a command for searching for kustomize resource files

This commit is contained in:
Haiyan Meng
2020-01-13 15:55:05 -08:00
parent 81d62f90bf
commit 14eb524b9e
2 changed files with 21 additions and 3 deletions

View File

@@ -102,14 +102,16 @@ func (gc githubCrawler) Crawl(ctx context.Context,
queryResult.errorCnt += result.errorCnt
}
if len(errs) > 0 {
return errs
}
logger.Printf("Summary of Crawl: got %d files from Github. "+
"%d have been seen before. %d are new and sent to the output channel." +
"%d have kustomizationResultAdapter errors.",
queryResult.totalDocCnt, queryResult.seenDocCnt,
queryResult.newDocCnt, queryResult.errorCnt)
if len(errs) > 0 {
return errs
}
return nil
}