Done prints a completion message in green. This is optional but provides a clean visual ending to the wizard flow. The message is printed on a new line with green text.
(message string)
| 157 | // This is optional but provides a clean visual ending to the wizard flow. |
| 158 | // The message is printed on a new line with green text. |
| 159 | func (w *Wizard) Done(message string) { |
| 160 | _, _ = fmt.Fprintf(w.prompt.out, "\n%s%s%s\n", colorGreen, message, colorReset) |
| 161 | } |
| 162 | |
| 163 | // Current returns the current step number (0-indexed). |
| 164 | func (w *Wizard) Current() int { |
no outgoing calls