1.0.11 • Published 8 months ago

@gavsidhu/templ8 v1.0.11

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

Templ8 - CLI Template Manager

Templ8 is a command-line tool that makes it easier to manage custom templates. It allows you to create, store, and use files or directories as templates, saving you time and effort.

Table of Contents

Installation

To use Templ8, you'll need to install it on your system. Make sure you have Node.js installed.

npm install -g templ8

Usage

You can run Templ8 using the following syntax:

templ8 command [options]

Commands

add

Add a template to the collection from a local file.

templ8 add (--dir <directory_path> | --file <file_path>) --name <template_name>

Example:

templ8 add --file example.md --name example-template

Options:

  • file path to an existing file
  • dir path to an existing directory
  • name Specify a name for the template

paste

Paste the specified template into the current directory.

templ8 paste (--dir=true | --file=true) --name <template_name>

Example:

templ8 paste --file=true --name example.md

Options:

  • file whether a template is a file. (default: false)
  • dir whether a template is a directory. (default: false)
  • name the name of the template you want to paste

list

List all stored templates.

templ8 list

delete

Remove a stored template.

templ8 delete (--dir=true | --file=true) --name <template_name>

Example:

templ8 delete --file=true --name example.md

Options:

  • file whether the template to delete is a file. (default: false)
  • dir whether the template to delete is a directory. (default: false)
  • template_name the name of the template to delete.

help

Show general help information.

templ8 --help

Show information about a command

template command --help

Example

Add a template:

templ8 add --dir exampleDir --name example-directory

Paste a template:

templ8 paste my-template

List all templates:

templ8 list

Delete a template:

templ8 delete --dir=true --name example-directory
1.0.11

8 months ago

1.0.10

8 months ago

1.0.9

8 months ago

1.0.8

8 months ago

1.0.7

8 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago