Move unlockDatabase to CLI/Utils (#2539)

Move unlockDatabase from Database to to cli/Utils
This commit is contained in:
louib authored and Janek Bevendorff committed 2018-12-11 16:49:51 +01:00
1 parent b6eeabab5e
commit cb3c4893dc
13 files changed
+83 -77

No files matched your search

+4 -4
View File
@@ -61,10 +61,10 @@ int Remove::execute(const QStringList& arguments)
return EXIT_FAILURE;
}
auto db = Database::unlockFromStdin(args.at(0),
parser.value(Command::KeyFileOption),
parser.isSet(Command::QuietOption) ? Utils::DEVNULL : Utils::STDOUT,
Utils::STDERR);
auto db = Utils::unlockDatabase(args.at(0),
parser.value(Command::KeyFileOption),
parser.isSet(Command::QuietOption) ? Utils::DEVNULL : Utils::STDOUT,
Utils::STDERR);
if (!db) {
return EXIT_FAILURE;
}