Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sgaunet/gtmpl
tool to initialize projects with templates.
https://github.com/sgaunet/gtmpl
Last synced: 14 days ago
JSON representation
tool to initialize projects with templates.
- Host: GitHub
- URL: https://github.com/sgaunet/gtmpl
- Owner: sgaunet
- License: mit
- Created: 2021-07-22T20:29:42.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-29T20:29:08.000Z (over 1 year ago)
- Last Synced: 2023-08-30T05:57:20.942Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 47.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gtmpl
gtmpl is a tool to initialize projects with templates.
* gtmpl will search the templates in $HOME/.gtmpl
* $HOME/.gtmpl should have subfolders representing the name of the templates
* Each template (subfolder) should contain files/folders to copy# Usage
```
Usage of gtmpl:
-d string
debuglevel : debug/info/warn/error (default "info")
-f Overwrite files
-p string
Project directory
-t string
Template Name
-v Get version
``````
$ ll $HOME/.gtmpl
total 8
drwxrwxr-x 2 sylvain sylvain 4096 juil. 26 05:27 default
drwxrwxr-x 3 sylvain sylvain 4096 août 2 21:26 docker-scratch
``````
$ cd .../DEV
$ git clone .../my-new-project
$ cd my-new-project
$ gtmpl -t docker-scratch
```# Major change
Since version 1.0.0, gtmpl is not initializing any gitlab CI variables. It's working only with files.
# Fix cross compilation darwin
```
go get -u golang.org/x/sys
```# Install
Download the binary in the release section. There is no docker image, but you can install a binary in your Docker image if needed. If you want to create a docker image from scratch, you will need to do a multi stage docker build in order to download the binary.
## With homebrew
```
brew tap sgaunet/tools
brew install mdtohtml
```