MCPcopy Create free account
hub / github.com/cli/cli / AuthToken

Method AuthToken

internal/prompter/prompter.go:527–533  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

525}
526
527func (p *surveyPrompter) AuthToken() (string, error) {
528 var result string
529 err := p.ask(&survey.Password{
530 Message: "Paste your authentication token:",
531 }, &result, survey.WithValidator(survey.Required))
532 return result, err
533}
534
535func (p *surveyPrompter) ConfirmDeletion(requiredValue string) error {
536 var result string

Callers

nothing calls this directly

Calls 1

askMethod · 0.95

Tested by

no test coverage detected