feat: adding prompt for hosttype, rather than relying on hostname

This commit is contained in:
Matthew Ryan Dillon 2024-10-02 18:07:40 -04:00
parent d667822e3e
commit 642e0958e0
5 changed files with 11 additions and 7 deletions

View file

@ -3,9 +3,13 @@
{{- $hostname := output "scutil" "--get" "ComputerName" | trim -}}
{{- end -}}
{{- $choices := list "wsl" "devterm" "personal" "work" -}}
{{- $hosttype := promptChoiceOnce . "hosttype" "What type of host are you on" $choices -}}
encryption = "age"
[age]
identity = "~/.key.txt"
recipient = "age1yd87u4ae86erpem2tynyl959ppc8a3jt4ztssykytzaklut6uvus5prt2t"
[data]
hostname = {{ $hostname | quote }}
hosttype = {{- $hosttype | quote -}}