(self)
| 154 | return self._current_prompt |
| 155 | |
| 156 | def run_wizard(self): |
| 157 | if self.has_no_remaining_prompts(): |
| 158 | self._executor.execute(self._definition['execute'], self._values) |
| 159 | else: |
| 160 | raise UnableToRunWizardError( |
| 161 | 'Cannot run wizard. There are prompts remaining that must ' |
| 162 | 'be answered.' |
| 163 | ) |
| 164 | |
| 165 | def is_prompt_visible(self, value_name): |
| 166 | if self._prompt_to_sections[value_name] != self.get_current_section(): |