Skip to content

Commit 8fdf803

Browse files
author
Anand
committed
ref issue #30 #31 - added new options to migrate existing database and to add tag as regular field
1 parent 6c21307 commit 8fdf803

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ func performAction(optMap map[string]interface{}) {
9191
"clone": WrapperMaxKryptStringFunc(copyCurrentEntry),
9292
"use-db": setActiveDatabasePath,
9393
"export": exportToFile,
94+
"migrate": migrateDatabase,
9495
}
9596

9697
stringListActionsMap := map[string]actionFunc{
@@ -190,6 +191,7 @@ func initializeCmdLine(parser *argparse.Parser) map[string]interface{} {
190191
{"E", "edit", "Edit entry by <id>", "<id>", ""},
191192
{"l", "list-entry", "List entry by <id>", "<id>", ""},
192193
{"x", "export", "Export all entries to <filename>", "<filename>", ""},
194+
{"m", "migrate", "Migrate a database to latest schema", "<path>", ""},
193195
}
194196

195197
for _, opt := range stringOptions {

0 commit comments

Comments
 (0)