Refactor: remove promptUser, promptPass from git/auth.go #231

Closed
opened 2020-10-22 14:41:48 +00:00 by 6543 · 0 comments
Owner

ref:

modules/git/auth.go Lines 95 to 106 in c1d725ed34
func promptUser(domain string) (string, error) {
reader := bufio.NewReader(os.Stdin)
fmt.Printf("%s username: ", domain)
username, err := reader.ReadString('\n')
return strings.TrimSpace(username), err
}
func promptPass(domain string) (string, error) {
fmt.Printf("%s password: ", domain)
pass, err := terminal.ReadPassword(0)
return string(pass), err
}

ref: https://gitea.com/gitea/tea/src/commit/c1d725ed34a95159d6bea0815bcd3357f4505e65/modules/git/auth.go#L95-L106
6543 added this to the v0.6.0 milestone 2020-10-22 14:41:48 +00:00
6543 added the
kind
refactor
label 2020-10-22 14:41:48 +00:00
noerw self-assigned this 2020-12-07 00:44:52 +00:00
noerw added the
status/has-pull
label 2020-12-08 00:24:36 +00:00
6543 closed this issue 2020-12-08 01:21:05 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitea/tea#231
No description provided.