feat: template in name and email

This commit is contained in:
Matthew Ryan Dillon 2024-10-03 11:33:39 -04:00
parent 642e0958e0
commit 15d78d24ed
4 changed files with 12 additions and 7 deletions

View file

@ -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 }}