mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-05-22 08:11:25 -04:00
CLI: Use stderr for password prompt
Fixes #3398. Convert to QTextStream for all CLI IO and greatly improve CLI tests * Completely overhaul CLI tests to be much more streamlined and easy to read. Removed unnecessary code blocks by using existing functions. Co-authored-by: Emma Brooks <me@pluvano.com>
This commit is contained in:
parent
612f8d2e5b
commit
485852c9db
30 changed files with 938 additions and 1407 deletions
|
@ -33,7 +33,7 @@ Info::Info()
|
|||
|
||||
int Info::executeWithDatabase(QSharedPointer<Database> database, QSharedPointer<QCommandLineParser>)
|
||||
{
|
||||
TextStream out(Utils::STDOUT, QIODevice::WriteOnly);
|
||||
auto& out = Utils::STDOUT;
|
||||
|
||||
out << QObject::tr("UUID: ") << database->uuid().toString() << endl;
|
||||
out << QObject::tr("Name: ") << database->metadata()->name() << endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue