(p prompter.Prompter, io *iostreams.IOStreams)
| 221 | } |
| 222 | |
| 223 | func 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 | |
| 233 | func runAuthToken(p prompter.Prompter, io *iostreams.IOStreams) error { |
| 234 | fmt.Fprintln(io.Out, "Demonstrating Auth Token (can't be blank)") |