Pull the latest changes for each repository
This commit is contained in:
parent
7020a76013
commit
f91b6e4cbd
3 changed files with 41 additions and 5 deletions
7
main.go
7
main.go
|
|
@ -1,7 +1,6 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"strings"
|
||||
|
||||
|
|
@ -19,20 +18,20 @@ func main() {
|
|||
dirs := cfg.Directories
|
||||
|
||||
for _, dir := range dirs {
|
||||
repositories, err := repositories.FindInDirectory(dir)
|
||||
repositoryPaths, err := repositories.FindInDirectory(dir)
|
||||
|
||||
if err != nil {
|
||||
// TODO
|
||||
}
|
||||
|
||||
lines := strings.SplitSeq(repositories, "\n")
|
||||
lines := strings.SplitSeq(repositoryPaths, "\n")
|
||||
|
||||
for repositoryPath := range lines {
|
||||
if repositoryPath == "" {
|
||||
continue
|
||||
}
|
||||
|
||||
fmt.Println(repositoryPath)
|
||||
repositories.Update(repositoryPath)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue