diff 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
line wrap: on
line diff
--- a/src/main/kotlin/name/blackcap/passman/Entry.kt	Sat Oct 01 20:43:59 2022 -0700
+++ b/src/main/kotlin/name/blackcap/passman/Entry.kt	Sat Jan 21 15:39:42 2023 -0800
@@ -47,6 +47,8 @@
         private fun _getNotes() = readLine("Notes: ")
     }
 
+    val modifiedOrCreated get() = modified ?: created!!
+
     fun print(redactPassword: String? = null) {
         println("Name of site: $name")
         println("Username: $username")