Skip to content

Releases: izxxr/prept

v0.2.0

22 Jun 05:09

Choose a tag to compare

Additions

  • Add BoilerplateInfo.variable_input_mode option to change behavior of variables input prompt
  • Add support for template paths
  • Add support for dynamic generation
  • Add support for installation of boilerplates from git repositories
  • Add Context.state attribute for propagating stateful information
  • Add BoilerplateInfo.template_provider_params for passing additional options to template providers

Enhancements and Changes

  • PreptCLIError now supports proper indentation formatting of multiline error message and hint
  • TemplateProvider.render has been renamed to TemplateProvider.process_content
  • prept info now shows the basic details (name, required/optional, summary) of template variables
  • BoilerplateInfo.template_provider now takes spec in standard Python module format i.e. module:object
  • Output directories created by Prept are now properly cleaned up in case of errors during generation
  • .git directory is now ignored at installation time.

Fixes

  • Fix BoilerplateInfo.allow_extra_variables not having any effect
  • Fix template provider not resolving through class name when get_prept_template_provider function was defined
  • Fix resolution failure for template providers from modules present in current working or boilerplate directory

Find detailed changelog at https://prept.readthedocs.io/en/latest/changelog.html#v0-2-0

v0.1.0

15 May 01:28

Choose a tag to compare

Initial Release

Full Changelog: https://github.com/izxxr/prept/commits/0.1.0