(p prompter.Prompter, io *iostreams.IOStreams)
| 211 | } |
| 212 | |
| 213 | func runPassword(p prompter.Prompter, io *iostreams.IOStreams) error { |
| 214 | fmt.Fprintln(io.Out, "Demonstrating Password Input") |
| 215 | safeword, err := p.Password("Safe word?") |
| 216 | if err != nil { |
| 217 | return err |
| 218 | } |
| 219 | fmt.Fprintf(io.Out, "Safe word: %s\n", safeword) |
| 220 | return nil |
| 221 | } |
| 222 | |
| 223 | func runConfirm(p prompter.Prompter, io *iostreams.IOStreams) error { |
| 224 | fmt.Fprintln(io.Out, "Demonstrating Confirmation") |