Skip to main content

Amestris

An MV tool to simplify template generation. This tool aims to help speed up template generation for common projects templates such as CRUDs and project start based on file templating.

Build

Getting started​

  1. Setup Go Programming Language
  2. Clone the repo on github
  3. Install the project dependencies:
    go get -u all
  4. Open with your favorite editor, and happy codding 😊.

Usage/Examples​

Screenshots​

sample usage

Example of use​

amestris -t  ~/templates/project

Flags​

NameShortcutDescription
template-tRequired. Path to you template folder
help-hdisplay help of cli
help-vdisplay the version of cli

Contraints and limitations​

The template processing depends on the golang standard template package, thus some limitations are inherent to the package. Check the package documentation on https://pkg.go.dev/text/template.

Besides that due some limitations we decide that in order to process variables of type array, we would expect that the variables of type array should end with Array.

The same with camelcase notation, we would expect a variable that ends with CamelCase and also this variable should have a matching variable with the same name minus CamelCase, e.g. Name and NameCamelCase.

How to contribute​

We definitely welcome your patches and contributions. If you are new to github, please start by reading Pull Request howto