Implement initial TOTP support (secret in third notes line, will eventually have its own dedicated field)

This commit is contained in:
2024-03-18 16:44:22 -04:00
parent 56eaec02c6
commit c1a415e5b0
8 changed files with 90 additions and 47 deletions
+3
View File
@@ -76,6 +76,9 @@ func main() {
field = 2
case "note", "-n":
field = 3
case "totp", "-t":
fmt.Println("TOTP code copied to clipboard - until this process is closed, your clipboard will be kept up to date with the current TOTP code")
field = 5 // TODO Update field after removed from notes (breaking sshyp entry compatibility)
default:
cli.HelpCopy()
}