mirror of
https://github.com/interviewstreet/go-jira.git
synced 2025-07-15 01:04:38 +02:00
Switched from deprecated terminal.ReadPassword to term.ReadPassword in examples: basicauth, create, renderedfields and searchpages
This commit is contained in:
@ -4,7 +4,7 @@ import (
|
||||
"bufio"
|
||||
"fmt"
|
||||
jira "github.com/andygrunwald/go-jira"
|
||||
"golang.org/x/crypto/ssh/terminal"
|
||||
"golang.org/x/term"
|
||||
"log"
|
||||
"os"
|
||||
"strings"
|
||||
@ -22,7 +22,7 @@ func main() {
|
||||
username, _ := r.ReadString('\n')
|
||||
|
||||
fmt.Print("Jira Password: ")
|
||||
bytePassword, _ := terminal.ReadPassword(int(syscall.Stdin))
|
||||
bytePassword, _ := term.ReadPassword(int(syscall.Stdin))
|
||||
password := string(bytePassword)
|
||||
|
||||
fmt.Print("\nJira Project Key: ") // e.g. TES or WOW
|
||||
|
Reference in New Issue
Block a user