feat: template in name and email
This commit is contained in:
parent
642e0958e0
commit
15d78d24ed
4 changed files with 12 additions and 7 deletions
|
@ -6,10 +6,15 @@
|
|||
{{- $choices := list "wsl" "devterm" "personal" "work" -}}
|
||||
{{- $hosttype := promptChoiceOnce . "hosttype" "What type of host are you on" $choices -}}
|
||||
|
||||
{{ $name := promptString "name" -}}
|
||||
{{ $email := promptString "email" -}}
|
||||
|
||||
encryption = "age"
|
||||
[age]
|
||||
identity = "~/.key.txt"
|
||||
recipient = "age1yd87u4ae86erpem2tynyl959ppc8a3jt4ztssykytzaklut6uvus5prt2t"
|
||||
[data]
|
||||
hostname = {{ $hostname | quote }}
|
||||
hosttype = {{- $hosttype | quote -}}
|
||||
hosttype = {{ $hosttype | quote }}
|
||||
name = {{ $name | quote }}
|
||||
email = {{ $email | quote }}
|
Loading…
Add table
Add a link
Reference in a new issue