We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88532dc commit aef0171Copy full SHA for aef0171
commitizen/commands/init.py
@@ -170,9 +170,10 @@ def _ask_config_path(self) -> Path:
170
def _ask_name(self) -> str:
171
def construct_choice_with_description(cz_name: str) -> questionary.Choice:
172
try:
173
- cz_class = registry.get(cz_name)(self.config)
+ cz_class = registry.get(cz_name)
174
if cz_class:
175
- first_example = cz_class.schema().partition("\n")[0]
+ cz_obj = cz_class(self.config)
176
+ first_example = cz_obj.schema().partition("\n")[0]
177
return questionary.Choice(
178
title=cz_name, value=cz_name, description=f"{first_example}"
179
)
0 commit comments