0
0
mirror of https://github.com/bryanpedini/gitea-mirror.git synced 2024-11-22 22:12:24 +00:00
gitea-mirror/main.go

21 lines
480 B
Go
Raw Normal View History

2017-11-28 22:04:32 +00:00
package main
import (
"fmt"
"os"
"github.com/bryanpedini/gitea-mirror-gitea/utils"
)
2017-11-28 22:04:32 +00:00
func main() {
commandLineArgumentsSlice := os.Args[1:]
commandLineArguments := utils.StringSliceToMap(commandLineArgumentsSlice)
if _, ok := commandLineArguments["--github"]; ok {
githubOrg, githubToken, giteaHost, giteaToken := "", "", "", ""
migrateGithubToGitea(githubOrg, githubToken, giteaHost, giteaToken)
} else {
fmt.Println("Usage: " + os.Args[0] + " [--github]")
}
2017-11-28 22:04:32 +00:00
}