2020-11-22 05:25:24 +00:00
|
|
|
# NAME
|
|
|
|
|
|
|
|
tmpl - Template automation
|
|
|
|
|
|
|
|
# SYNOPSIS
|
|
|
|
|
|
|
|
tmpl
|
|
|
|
|
|
|
|
```
|
|
|
|
[--registry|-r]=[value]
|
|
|
|
[--source|-s]=[value]
|
|
|
|
```
|
|
|
|
|
2022-06-14 19:59:53 +00:00
|
|
|
# DESCRIPTION
|
|
|
|
|
|
|
|
Template automation
|
|
|
|
|
2020-11-22 05:25:24 +00:00
|
|
|
**Usage**:
|
|
|
|
|
|
|
|
```
|
|
|
|
tmpl [GLOBAL OPTIONS] command [COMMAND OPTIONS] [ARGUMENTS...]
|
|
|
|
```
|
|
|
|
|
|
|
|
# GLOBAL OPTIONS
|
|
|
|
|
|
|
|
**--registry, -r**="": Registry directory of tmpl (default: ~/.tmpl)
|
|
|
|
|
|
|
|
**--source, -s**="": Short-name source to use
|
|
|
|
|
|
|
|
|
|
|
|
# COMMANDS
|
|
|
|
|
|
|
|
## download
|
|
|
|
|
|
|
|
Download a template
|
|
|
|
|
|
|
|
**--branch, -b**="": Branch to clone (default: main)
|
|
|
|
|
2020-11-30 05:16:25 +00:00
|
|
|
## env
|
|
|
|
|
|
|
|
Show tmpl environment variables
|
|
|
|
|
2022-06-14 19:59:53 +00:00
|
|
|
### set, add
|
|
|
|
|
|
|
|
Set a tmpl environment variable (stored plaintext)
|
|
|
|
|
|
|
|
### unset, delete
|
|
|
|
|
|
|
|
Unsets a tmpl environment variable
|
|
|
|
|
2020-11-22 05:25:24 +00:00
|
|
|
## init
|
|
|
|
|
|
|
|
Initialize a template
|
|
|
|
|
|
|
|
## list
|
|
|
|
|
|
|
|
List templates in the registry
|
|
|
|
|
|
|
|
## remove
|
|
|
|
|
|
|
|
Remove a template
|
|
|
|
|
2020-11-30 05:16:25 +00:00
|
|
|
## restore
|
|
|
|
|
|
|
|
Restore missing templates
|
|
|
|
|
2020-11-22 05:25:24 +00:00
|
|
|
## save
|
|
|
|
|
|
|
|
Save a local template
|
|
|
|
|
|
|
|
## source
|
|
|
|
|
|
|
|
Commands for working with sources
|
|
|
|
|
|
|
|
### list
|
|
|
|
|
|
|
|
List available sources
|
|
|
|
|
|
|
|
### add
|
|
|
|
|
|
|
|
Add a source
|
|
|
|
|
|
|
|
### remove
|
|
|
|
|
|
|
|
Remove a source
|
|
|
|
|
|
|
|
## test
|
|
|
|
|
|
|
|
Test if a directory is a valid template
|
|
|
|
|
|
|
|
## update
|
|
|
|
|
|
|
|
Update a template
|
|
|
|
|
|
|
|
## use
|
|
|
|
|
|
|
|
Use a template
|
|
|
|
|
|
|
|
**--defaults**: Use template defaults
|
|
|
|
|
|
|
|
**--force**: Overwrite existing files
|