(kind entities.Kind, owner, repo, branch, path string, out io.Writer)
| 1267 | } |
| 1268 | |
| 1269 | func fetchSingleRepo(kind entities.Kind, owner, repo, branch, path string, out io.Writer) error { |
| 1270 | added, err := fetchSingleRepoCount(kind, owner, repo, branch, path) |
| 1271 | if err != nil { |
| 1272 | return err |
| 1273 | } |
| 1274 | fmt.Fprintf(out, "Fetched %d %ss from %s/%s\n", added, kind, owner, repo) |
| 1275 | return nil |
| 1276 | } |
| 1277 | |
| 1278 | func fetchSingleRepoCount(kind entities.Kind, owner, repo, branch, path string) (int, error) { |
| 1279 | client := fetching.New() |
no test coverage detected