Skip to content

TwiN/gemplater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gemplater

Gemplater is a Go application that allows you to add simple templating to your projects.

It was originally created to allow some extra customizability to dotfiles repositories.

Usage

install

The magic happens with the install subcommand, which installs, or processes the target file(s) and outputs them to the destination specified or to stdout if no destination is specified

gemplater install TARGET [DESTINATION] [FLAGS]

Examples:

gemplater install .profile ~/.profile
gemplater install dotfiles ~/ --quick --remember

Flags:

-h, --help            Help for install
-i, --ignore          Whether to ignore missing variables. If not set, missing variables will trigger interactive mode
-n, --no-headers      Print header in each file containing the source file. Only applies when no destination is provided
-q, --quick           Do not ask for value of variables that are already set. Requires -i to not be set
-r, --remember        Remember variables interactively set on one file for other files. Requires -i to not be set. Useless if TARGET is not directory
-c, --config string   Specify configuration file to use (default ".gemplater.yml")

If you do not specify the DESTINATION, the output will be printed in the console.

init

Create a .gemplater.yml file with all variables found in the destination file or folder.

gemplater init [TARGET] [FLAGS]

Note: If you don't specify the target, the current folder will be used as target.

Example:

gemplater init .profile

Flags:

-h, --help            Help for init
-c, --config string   Specify configuration file to use (default ".gemplater.yml")

About

No description or website provided.

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published