move git auth prompts to interact module #276
No reviewers
Labels
No Label
kind/breaking
kind/bug
kind/build
kind/dependency
kind/deployment
kind/docs
kind
enhancement
kind
feature
kind/proposal
kind
question
kind
refactor
kind/security
kind/testing
kind/translation
priority/critical
priority/high
priority/low
priority/medium
reviewed/duplicate
reviewed/invalid
reviewed/wontfix
skip-changelog
status/blocked
status/has-backport
status/has-pull
status/needs-backport
status/needs-feedback
status/needs-reviews
status/wip
upstream/gitea
upstream/sdk
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/tea#276
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "noerw/tea:issue-231-refactor-prompt-2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
closes #231
move git auth prompts to interactto move git auth prompts to interact moduleone way to solve this for now :)
I still think we can do eaven better, but until I myselve do not have a working & nice idear a callback func is one clean way to solve it
@ -0,0 +9,4 @@
)
// PromptPassword asks for a password and blocks until input was made.
func PromptPassword(ctx string) (pass string, err error) {
one nit, dont call it ctx, name it something like "sender" or so ... since ctx is normaly used for context.Contect