comparison src/main/kotlin/name/blackcap/passman/Entry.kt @ 11:c69665ff37d0

Add merge subcommand (untested).
author David Barts <n5jrn@me.com>
date Sat, 21 Jan 2023 15:39:42 -0800
parents 72619175004e
children a38a2a1036c3
comparison
equal deleted inserted replaced
10:cbe4c797c9a6 11:c69665ff37d0
45 private fun _getPassword() = mustGetPassword("Password: ", verify = true) 45 private fun _getPassword() = mustGetPassword("Password: ", verify = true)
46 46
47 private fun _getNotes() = readLine("Notes: ") 47 private fun _getNotes() = readLine("Notes: ")
48 } 48 }
49 49
50 val modifiedOrCreated get() = modified ?: created!!
51
50 fun print(redactPassword: String? = null) { 52 fun print(redactPassword: String? = null) {
51 println("Name of site: $name") 53 println("Name of site: $name")
52 println("Username: $username") 54 println("Username: $username")
53 if (redactPassword == null) { 55 if (redactPassword == null) {
54 printPassword(password) 56 printPassword(password)