mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-24 02:51:38 -08:00
Move unlockDatabase to CLI/Utils (#2539)
Move unlockDatabase from Database to to cli/Utils
This commit is contained in:
1 parent
b6eeabab5e
commit
cb3c4893dc
13 files changed
+83
-77
No files matched your search
+4
-4
@@ -90,10 +90,10 @@ int Add::execute(const QStringList& arguments)
|
||||
const QString& databasePath = args.at(0);
|
||||
const QString& entryPath = args.at(1);
|
||||
|
||||
auto db = Database::unlockFromStdin(databasePath,
|
||||
parser.value(Command::KeyFileOption),
|
||||
parser.isSet(Command::QuietOption) ? Utils::DEVNULL : Utils::STDOUT,
|
||||
Utils::STDERR);
|
||||
auto db = Utils::unlockDatabase(databasePath,
|
||||
parser.value(Command::KeyFileOption),
|
||||
parser.isSet(Command::QuietOption) ? Utils::DEVNULL : Utils::STDOUT,
|
||||
Utils::STDERR);
|
||||
if (!db) {
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user