fix: add comments
This commit is contained in:
1 parent
5da5a6fe5f
commit
38b96c1e27
1 file changed
+4
@@ -133,8 +133,12 @@ func createParallelWorkerPool(jobs chan string, results chan parallelCommandResu
|
|||||||
close(results)
|
close(results)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ReportFunc is a type that declares functions
|
||||||
|
// useful for :report subcommands
|
||||||
type ReportFunc func(string) string
|
type ReportFunc func(string) string
|
||||||
|
|
||||||
|
// CollectReport iterates over a set of report functions
|
||||||
|
// to collect the :report output in parallel
|
||||||
func CollectReport(appName string, flags map[string]ReportFunc) map[string]string {
|
func CollectReport(appName string, flags map[string]ReportFunc) map[string]string {
|
||||||
var sm sync.Map
|
var sm sync.Map
|
||||||
var wg sync.WaitGroup
|
var wg sync.WaitGroup
|
||||||
|
|||||||
Reference in new issue
Block a user