mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-26 00:05:34 -04:00
CLI: Add Import XML command (#3572)
The CLI now contains an "import" command that creates a new database from the specified XML export. The new database is in kdbx 4 format, and does not currently accept a keyfile in database creation. This change is required to create new databases from XML backups. Fixes #2458
This commit is contained in:
parent
82cfedfa43
commit
dbe15d32e5
14 changed files with 2127 additions and 1904 deletions
|
@ -36,6 +36,7 @@
|
|||
#include "Export.h"
|
||||
#include "Generate.h"
|
||||
#include "Help.h"
|
||||
#include "Import.h"
|
||||
#include "List.h"
|
||||
#include "Locate.h"
|
||||
#include "Merge.h"
|
||||
|
@ -180,6 +181,7 @@ namespace Commands
|
|||
s_commands.insert(QStringLiteral("quit"), QSharedPointer<Command>(new Exit("quit")));
|
||||
} else {
|
||||
s_commands.insert(QStringLiteral("export"), QSharedPointer<Command>(new Export()));
|
||||
s_commands.insert(QStringLiteral("import"), QSharedPointer<Command>(new Import()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue