(self)
| 206 | return Path(filename) |
| 207 | |
| 208 | def _ask_name(self) -> str: |
| 209 | name: str = questionary.select( |
| 210 | f"Please choose a cz (commit rule): (default: {DEFAULT_SETTINGS['name']})", |
| 211 | choices=self._construct_name_choices_from_registry(), |
| 212 | default=DEFAULT_SETTINGS["name"], |
| 213 | style=self.cz.style, |
| 214 | ).unsafe_ask() |
| 215 | return name |
| 216 | |
| 217 | def _construct_name_choices_from_registry(self) -> list[questionary.Choice]: |
| 218 | """ |
no test coverage detected