func main() { if len(os.Args) != 2 { fmt.Println("Please give a root path as an argument") return } gitInfos, err := lib.CollectGitRepositories(os.Args[1]) if err != nil { panic(err) } Rename(gitInfos) }
func main() { if len(os.Args) != 2 { fmt.Println("Please give a root path as an argument") return } gitInfos, err := lib.CollectGitRepositories(os.Args[1]) if err != nil { panic(err) } for _, gi := range gitInfos { fmt.Printf("git clone [email protected]:%v/%v\n", gi.Username, gi.Projectname) } }