5cebdf6444f875b6f2dc6bc71b133b7527df34cb
code-templates
Code tamplates CLI program. Allows template parsing over a single input variable name into a desider directory.
Instalation
- Clone the repository
- Run
$ cargo biuld --release
The desired executable will be located inside the target folder.
Configuration
This program is configured with env variables.
BLUEPRINTS_PATHSwill store the places to look for the code templates, the paths must be separated by semicolons. Example:"BLUEPRINTS_PATHS" = "./.blueprints; ~/Another/Route".- By default will search for the
./.blueprintsdirectory.
How to use it
- Run the program:
./target/release/code_templates - Select a template
- Insert the desired name
- Select the target path, this will be the directory where the files will be created
Known issues
- Only admits 1 level of encapsulation. This means that within the
templates/blueprintsfolder, only the direct childrens will be treated as templates. - Only admits simple templates, with a single variable.
Description
Languages
Rust
100%