diff --git a/bridge/github/config.go b/bridge/github/config.go index dc1185b5cb52b60dab0923090fd26d05dc068ea6..80fc9152d13de098e990c38cdde94c5bcd1c3fd1 100644 --- a/bridge/github/config.go +++ b/bridge/github/config.go @@ -337,7 +337,7 @@ func promptUsername() (string, error) { } func promptURL(remotes map[string]string) (string, string, error) { - validRemotes := valideGithubURLRemotes(remotes) + validRemotes := getValideGithubRemoteURLs(remotes) if len(validRemotes) > 0 { for { fmt.Println("\nDetected projects:") @@ -409,7 +409,7 @@ func splitURL(url string) (shortURL string, owner string, project string, err er return res[0], res[1], res[2], nil } -func valideGithubURLRemotes(remotes map[string]string) []string { +func getValideGithubRemoteURLs(remotes map[string]string) []string { urls := make([]string, 0, len(remotes)) for _, url := range remotes { // split url can work again with shortURL diff --git a/commands/bridge_configure.go b/commands/bridge_configure.go index 0ad602f4b39f517b6ba84f0832bf2fa9f8ea3d43..c1bea08bd3f4139f130f11261b785395107c75f6 100644 --- a/commands/bridge_configure.go +++ b/commands/bridge_configure.go @@ -120,4 +120,5 @@ func init() { bridgeConfigureCmd.Flags().StringVarP(&bridgeParams.Owner, "owner", "o", "", "The owner of the target repository") bridgeConfigureCmd.Flags().StringVarP(&bridgeParams.Token, "token", "T", "", "The authentication token for the API") bridgeConfigureCmd.Flags().StringVarP(&bridgeParams.Project, "project", "p", "", "The name of the target repository") + bridgeConfigureCmd.Flags().SortFlags = false }