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 1/2] 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 From b19f2c69b628c8e61ba3e99a291610da07682385 Mon Sep 17 00:00:00 2001 From: rick <1450685+LinuxSuRen@users.noreply.github.com> Date: Tue, 7 Nov 2023 10:37:17 +0800 Subject: [PATCH 2/2] fix broken links --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 63b0583..e73ff30 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ [![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/LinuxSuRen/http-downloader) [![](https://goreportcard.com/badge/linuxsuren/http-downloader)](https://goreportcard.com/report/linuxsuren/github-go) [![](http://img.shields.io/badge/godoc-reference-5272B4.svg?style=flat-square)](https://godoc.org/github.com/linuxsuren/http-downloader) -[![Codacy Badge](https://app.codacy.com/project/badge/Grade/7cc20ea84e0543068c320e471bde560e)](https://www.codacy.com/gh/LinuxSuRen/http-downloader/dashboard?utm_source=github.com&utm_medium=referral&utm_content=LinuxSuRen/http-downloader&utm_campaign=Badge_Grade) -[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/7cc20ea84e0543068c320e471bde560e)](https://www.codacy.com/gh/LinuxSuRen/http-downloader/dashboard?utm_source=github.com&utm_medium=referral&utm_content=LinuxSuRen/http-downloader&utm_campaign=Badge_Coverage) +[![Codacy Badge](https://app.codacy.com/project/badge/Grade/7cc20ea84e0543068c320e471bde560e)](https://app.codacy.com/gh/LinuxSuRen/http-downloader/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade) +[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/7cc20ea84e0543068c320e471bde560e)](https://app.codacy.com/gh/LinuxSuRen/http-downloader/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage) [![codecov](https://codecov.io/gh/LinuxSuRen/http-downloader/branch/master/graph/badge.svg?token=Ntc8z2iEQ2)](https://codecov.io/gh/LinuxSuRen/http-downloader) [![Contributors](https://img.shields.io/github/contributors/linuxsuren/http-downloader.svg)](https://github.com/linuxsuren/github-go/graphs/contributors) [![GitHub release](https://img.shields.io/github/release/linuxsuren/http-downloader.svg?label=release)](https://github.com/linuxsuren/github-go/releases/latest)