Add ability to set title for ssh key in auth login (#5524)

This commit is contained in:
Andrew Senetar 2022-05-23 03:06:42 -05:00 committed by GitHub
parent 3574240fa7
commit ff8aa8a555
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 6 deletions

View file

@ -56,6 +56,7 @@ func TestLogin_ssh(t *testing.T) {
ask.StubPrompt("What is your preferred protocol for Git operations?").AnswerWith("SSH")
ask.StubPrompt("Generate a new SSH key to add to your GitHub account?").AnswerWith(true)
ask.StubPrompt("Enter a passphrase for your new SSH key (Optional)").AnswerWith("monkey")
ask.StubPrompt("Title for your SSH key:").AnswerWith("Test Key")
ask.StubPrompt("How would you like to authenticate GitHub CLI?").AnswerWith("Paste an authentication token")
ask.StubPrompt("Paste your authentication token:").AnswerWith("ATOKEN")