From b48237aa598164d8de3b738cbc8ca9075940d5ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Wed, 3 Jun 2020 15:16:55 +0200 Subject: [PATCH] Update headless authentication instructions --- auth/oauth.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/auth/oauth.go b/auth/oauth.go index 5e286443e..3568956c5 100644 --- a/auth/oauth.go +++ b/auth/oauth.go @@ -66,9 +66,9 @@ func (oa *OAuthFlow) ObtainAccessToken() (accessToken string, err error) { fmt.Fprintf(os.Stderr, "Please open the following URL manually:\n%s\n", startURL) fmt.Fprintf(os.Stderr, "") // TODO: Temporary workaround for https://github.com/cli/cli/issues/297 - fmt.Fprintf(os.Stderr, "If you are on a server or other headless system, use this workaround instead:") - fmt.Fprintf(os.Stderr, " 1. Complete authentication on a GUI system") - fmt.Fprintf(os.Stderr, " 2. Copy the contents of ~/.config/gh/config.yml to this system") + fmt.Fprintf(os.Stderr, "If you are on a server or other headless system, use this workaround instead:\n") + fmt.Fprintf(os.Stderr, " 1. Complete authentication on a GUI system;\n") + fmt.Fprintf(os.Stderr, " 2. Copy the contents of `~/.config/gh/hosts.yml` to this system.\n") } _ = http.Serve(listener, http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {