mirror of
https://github.com/bryanpedini/gitea-mirror.git
synced 2024-11-22 22:12:24 +00:00
21 lines
480 B
Go
21 lines
480 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"github.com/bryanpedini/gitea-mirror-gitea/utils"
|
|
)
|
|
|
|
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]")
|
|
}
|
|
}
|