MCPcopy Index your code
hub / github.com/cli/cli / runConfirm

Function runConfirm

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

Source from the content-addressed store, hash-verified

221}
222
223func runConfirm(p prompter.Prompter, io *iostreams.IOStreams) error {
224 fmt.Fprintln(io.Out, "Demonstrating Confirmation")
225 confirmation, err := p.Confirm("Are you sure?", true)
226 if err != nil {
227 return err
228 }
229 fmt.Fprintf(io.Out, "Confirmation: %t\n", confirmation)
230 return nil
231}
232
233func runAuthToken(p prompter.Prompter, io *iostreams.IOStreams) error {
234 fmt.Fprintln(io.Out, "Demonstrating Auth Token (can't be blank)")

Callers

nothing calls this directly

Calls 1

ConfirmMethod · 0.65

Tested by

no test coverage detected