Skip to content

templatectl will be a maintained version of boiler with more template examples.

License

Notifications You must be signed in to change notification settings

4thel00z/templatectl

Repository files navigation

templatectl

templatectl.png

Motivation

boilr is abandonware, let's do our own thing.

Installation

go get github.com/4thel00z/templatectl

Upgrade

You can update to the newest version of templatectl using:

templatectl upgrade

Usage

Download a Template

In order to download a template from a github repository, use the following command:

templatectl template download <github-repo-path> <template-tag>
templatectl template download 4thel00z/service-module sm

The downloaded template will be saved to local templatectl registry.

Save a Local Template

In order to save a template from filesystem to the template registry use the following command:

templatectl template save <template-path> <template-tag>
templatectl template save ~/templates/node-noob node-noob

The saved template will be saved to local templatectl registry.

Use a Template

For a templatectl template with the given directory structure:

.
├── project.json
├── README.md
└── template
    └── package.json

And the following project.json context file:

{
    "Author": "4thel00z",
    "Year": "2021",
    "TaskRunner": [
        "gulp",
        "make",
        "just"
    ]
}

When using the template with the following command:

templatectl template use <template-tag> <target-dir>
templatectl template use node-noob /home/noob/node/project

License

This project is licensed under the GPL-3 license.

About

templatectl will be a maintained version of boiler with more template examples.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages