feat: encryption password prompt + --encrypt flag

- PasswordPromptTab: setup/unlock modes, password + confirm fields
- --encrypt flag: shows password prompt on TUI startup
- Model.ShowEncryptPrompt() triggers prompt on first render
- passwordSetMsg stores password in Model.storagePassword
- Tab interface: added Close() method to PasswordPromptTab
This commit is contained in:
swanadiva
2026-06-25 13:38:59 +07:00
parent 1d2e29d20a
commit 94f2142d3d
4 changed files with 260 additions and 2 deletions
+3
View File
@@ -178,3 +178,6 @@ func saveHostCmd(host *models.Host, dataDir string) tea.Cmd {
return saveHostResultMsg{host: host}
}
}
// openEncryptPromptMsg shows the encryption setup prompt
type openEncryptPromptMsg struct{}