From db74830e64efc3a09a57b80f20fe75eb032f0ee8 Mon Sep 17 00:00:00 2001 From: Mahdyar Hasanpour Date: Sun, 22 Aug 2021 18:01:55 +0430 Subject: [PATCH] chore: make gh status clickable Adding https:// to githubstatus.com to make it clickable on terminal emulators --- cmd/gh/main.go | 2 +- cmd/gh/main_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/gh/main.go b/cmd/gh/main.go index 86c932988..1d1876021 100644 --- a/cmd/gh/main.go +++ b/cmd/gh/main.go @@ -251,7 +251,7 @@ func printError(out io.Writer, err error, cmd *cobra.Command, debug bool) { if debug { fmt.Fprintln(out, dnsError) } - fmt.Fprintln(out, "check your internet connection or githubstatus.com") + fmt.Fprintln(out, "check your internet connection or https://githubstatus.com") return } diff --git a/cmd/gh/main_test.go b/cmd/gh/main_test.go index 9036391fd..819cb2fb6 100644 --- a/cmd/gh/main_test.go +++ b/cmd/gh/main_test.go @@ -43,7 +43,7 @@ func Test_printError(t *testing.T) { debug: false, }, wantOut: `error connecting to api.github.com -check your internet connection or githubstatus.com +check your internet connection or https://githubstatus.com `, }, {