hay-kot / scaffold

A cookie cutter alternative with in-project scaffolding for generating components, controllers, or other common code patterns.
https://hay-kot.github.io/scaffold/
MIT License
63 stars 8 forks source link

feat: support specifying minimum version for scaffold #203

Closed hay-kot closed 2 months ago

hay-kot commented 3 months ago

With the new functions and possible changes required with new template functions, we may want the ability to specify a minimum version that the scaffold file supports.

This PR adds a new field metadata to the scaffold and a new subfield minimum_version which, when provided, will be verified to be less than or equal to the cli version. This check is bypassed if no value is provided, or if the cli is build with no version (dev)