MCPcopy Index your code
hub / github.com/commitizen-tools/commitizen / _ask_name

Method _ask_name

commitizen/commands/init.py:176–183  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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 """

Callers 1

__call__Method · 0.95

Calls 2

unsafe_askMethod · 0.80

Tested by

no test coverage detected