Mercurial > cgi-bin > hgweb.cgi > PassMan
comparison src/main/kotlin/name/blackcap/passman/ExportSubcommand.kt @ 22:07406c4af4a5
More interactive mode stuff.
author | David Barts <n5jrn@me.com> |
---|---|
date | Tue, 02 Jul 2024 17:34:52 -0700 |
parents | ea65ab890f66 |
children |
comparison
equal
deleted
inserted
replaced
21:ea65ab890f66 | 22:07406c4af4a5 |
---|---|
16 private lateinit var csvDateFormat: SimpleDateFormat | 16 private lateinit var csvDateFormat: SimpleDateFormat |
17 private lateinit var db: Database | 17 private lateinit var db: Database |
18 private val options = ImportExportArguments() | 18 private val options = ImportExportArguments() |
19 private lateinit var csvFile: String | 19 private lateinit var csvFile: String |
20 | 20 |
21 override fun run(args: Array<String>): { | 21 override fun run(args: Array<String>) { |
22 parseArguments(args) | 22 parseArguments(args) |
23 db = Database.default | 23 db = Database.default |
24 try { | 24 try { |
25 doExport() | 25 doExport() |
26 } catch (e: IOException) { | 26 } catch (e: IOException) { |