コード例 #1
0
ファイル: main.go プロジェクト: pivotal/gumshoe
func handleAuthentication(client *trackerapi.Client, terminal *term.Terminal) {
	if !client.IsAuthenticated() {
		username := terminal.Prompt("Username: "******"Password: ", term.DisableEcho)
		client.Authenticate(username, password)
	}
}