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

Method _export_template

commitizen/commands/changelog.py:182–190  ·  view source on GitHub ↗
(self, dist: str)

Source from the content-addressed store, hash-verified

180 changelog_file.write(changelog_out)
181
182 def _export_template(self, dist: str) -> None:
183 filename = changelog.get_changelog_template(
184 self.cz.template_loader, self.template
185 ).filename
186 if filename is None:
187 raise NotAllowed("Template filename is not set")
188
189 text = Path(filename).read_text()
190 Path(dist).write_text(text)
191
192 def __call__(self) -> None:
193 commit_parser = self.cz.commit_parser

Callers 1

__call__Method · 0.95

Calls 1

NotAllowedClass · 0.90

Tested by

no test coverage detected