feat: Add helper output on failed gitssh (#1127)

This commit is contained in:
Kyle Carberry
2022-04-25 00:29:15 -05:00
committed by GitHub
parent 4417dd5951
commit 7e33d80fa9
5 changed files with 24 additions and 6 deletions

View File

@ -30,11 +30,11 @@ func publickey() *cobra.Command {
"Coder. All clones with SSH will be authenticated automatically 🪄.",
))
cmd.Println()
cmd.Println(cliui.Styles.Code.Render(strings.TrimSpace(key.PublicKey)))
cmd.Println()
cmd.Println("Add to GitHub and GitLab:")
cmd.Println(cliui.Styles.Prompt.String() + "https://github.com/settings/ssh/new")
cmd.Println(cliui.Styles.Prompt.String() + "https://gitlab.com/-/profile/keys")
cmd.Println()
cmd.Println(cliui.Styles.Code.Render(strings.TrimSpace(key.PublicKey)))
return nil
},