2017-11-28 22:04:32 +00:00
|
|
|
package main
|
|
|
|
|
2020-01-09 12:14:35 +00:00
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"os"
|
|
|
|
|
|
|
|
"github.com/bryanpedini/gitea-mirror-gitea/utils"
|
|
|
|
)
|
|
|
|
|
2017-11-28 22:04:32 +00:00
|
|
|
func main() {
|
2020-01-09 12:14:35 +00:00
|
|
|
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
|
|
|
}
|