Skip to content

Apply a project as a template to start a new project with support for variables

License

Notifications You must be signed in to change notification settings

patrickleet/apply-template

Repository files navigation

apply-template

Build Status codecov

use an existing repository as a template

Usage

Templates can contain variables, which the user will be prompted to fill when applying the template.

Example Template File

Hello, {[.NAME.]}

When applying the above template, the user would be prompted to provide a value for NAME

Applying the template

> apply-template ./my-microservice ./new-microservice

Enter a value for 'MICROSERVICE_NAME': todolist-model-service

Specifying options

It's also possible to set variables when running the command

apply-template templates/test-template my-target-dir --FULL_NAME="Patrick Scott"

Templates

Please contribute more templates! It's super easy!

About

Apply a project as a template to start a new project with support for variables

Resources

License

Stars

Watchers

Forks

Packages