templatectl

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

README

templatectl

templatectl.png

Motivation

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

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
cmd
util/git
Package git is a facade for git methods used by templatectl
Package git is a facade for git methods used by templatectl
util/tlog
Package tlog implements logging utilities for templatectl
Package tlog implements logging utilities for templatectl

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL