1.0.11 • Published 2 years ago
@gavsidhu/templ8 v1.0.11
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 templ8Usage
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-templateOptions:
filepath to an existing filedirpath to an existing directorynameSpecify 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.mdOptions:
filewhether a template is a file. (default: false)dirwhether a template is a directory. (default: false)namethe name of the template you want to paste
list
List all stored templates.
templ8 listdelete
Remove a stored template.
templ8 delete (--dir=true | --file=true) --name <template_name>Example:
templ8 delete --file=true --name example.mdOptions:
filewhether the template to delete is a file. (default: false)dirwhether the template to delete is a directory. (default: false)template_namethe name of the template to delete.
help
Show general help information.
templ8 --helpShow information about a command
template command --helpExample
Add a template:
templ8 add --dir exampleDir --name example-directoryPaste a template:
templ8 paste my-templateList all templates:
templ8 listDelete a template:
templ8 delete --dir=true --name example-directory