From c790b62ce27459b08cf4d7d75d799364e7e933ac Mon Sep 17 00:00:00 2001 From: rick <1450685+LinuxSuRen@users.noreply.github.com> Date: Tue, 7 Nov 2023 10:34:10 +0800 Subject: [PATCH] fix: change the domain from ghproxy.com to gh-proxy.com --- cmd/root.go | 2 +- cmd/setup.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index e837ea7..a6f839e 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -51,7 +51,7 @@ func NewRoot(cxt context.Context) (cmd *cobra.Command) { for _, c := range cmd.Commands() { registerFlagCompletionFunc(c, "provider", ArrayCompletion(ProviderGitHub, ProviderGitee)) registerFlagCompletionFunc(c, "proxy-github", ArrayCompletion("gh.api.99988866.xyz", - "ghproxy.com", "mirror.ghproxy.com")) + "ghproxy.com")) registerFlagCompletionFunc(c, "os", ArrayCompletion("window", "linux", "darwin")) registerFlagCompletionFunc(c, "arch", ArrayCompletion("amd64", "arm64")) registerFlagCompletionFunc(c, "format", ArrayCompletion("tar.gz", "zip", "msi")) diff --git a/cmd/setup.go b/cmd/setup.go index 226a3e8..f0dc14f 100644 --- a/cmd/setup.go +++ b/cmd/setup.go @@ -42,7 +42,7 @@ func (o *setupOption) runE(cmd *cobra.Command, args []string) (err error) { logger := log.GetLoggerFromContextOrDefault(cmd) if o.proxy == "" { - if o.proxy, err = selectFromList([]string{"", "ghproxy.com", "gh.api.99988866.xyz", "mirror.ghproxy.com"}, + if o.proxy, err = selectFromList([]string{"", "ghproxy.com", "gh.api.99988866.xyz"}, o.v.GetString("proxy-github"), "Select proxy-github", o.stdio); err != nil { return