示例#1
0
文件: github.go 项目: go-gonzo/github
func Get(ctx context.Context, releases ...Release) gonzo.Pipe {

	var all []gonzo.Pipe
	for _, release := range releases {
		all = append(all, get(ctx, release))
	}
	return util.Merge(ctx, all...)
}
示例#2
0
文件: npm.go 项目: go-gonzo/npm
func Get(ctx context.Context, pkgs ...pkg.Package) gonzo.Pipe {

	var all []gonzo.Pipe
	for _, pkg := range pkgs {
		if pkg.Dist.Tarball == "" {
			ctx.Info("EMPTY", pkg.Name)
			continue
		}
		all = append(all, get(ctx, pkg))
	}
	return util.Merge(ctx, all...)
}