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

Function runAuthToken

pkg/cmd/preview/prompter/prompter.go:233–241  ·  view source on GitHub ↗
(p prompter.Prompter, io *iostreams.IOStreams)

Source from the content-addressed store, hash-verified

231}
232
233func runAuthToken(p prompter.Prompter, io *iostreams.IOStreams) error {
234 fmt.Fprintln(io.Out, "Demonstrating Auth Token (can't be blank)")
235 token, err := p.AuthToken()
236 if err != nil {
237 return err
238 }
239 fmt.Fprintf(io.Out, "Auth token: %s\n", token)
240 return nil
241}
242
243func runConfirmDeletion(p prompter.Prompter, io *iostreams.IOStreams) error {
244 fmt.Fprintln(io.Out, "Demonstrating Deletion Confirmation")

Callers

nothing calls this directly

Calls 1

AuthTokenMethod · 0.65

Tested by

no test coverage detected