(self)
| 174 | return Path(filename) |
| 175 | |
| 176 | def _ask_name(self) -> str: |
| 177 | name: str = questionary.select( |
| 178 | f"Please choose a cz (commit rule): (default: {DEFAULT_SETTINGS['name']})", |
| 179 | choices=self._construct_name_choices_from_registry(), |
| 180 | default=DEFAULT_SETTINGS["name"], |
| 181 | style=self.cz.style, |
| 182 | ).unsafe_ask() |
| 183 | return name |
| 184 | |
| 185 | def _construct_name_choices_from_registry(self) -> list[questionary.Choice]: |
| 186 | """ |
no test coverage detected