keepassxc/src
Janek Bevendorff 113c8eb702 Add CLI tests and improve coding style and i18n
The CLI module was lacking unit test coverage and showed some severe
coding style violations, which this patch addresses.

In addition, all uses of qCritical() with untranslatble raw char*
sequences were removed in favor of proper locale strings. These are
written to STDERR through QTextStreams and support output
redirection for testing purposes. With this change, error messages don't
depend on the global Qt logging settings and targets anymore and go
directly to the terminal or into a file if needed.

This patch also fixes a bug discovered during unit test development,
where the extract command would just dump the raw XML contents without
decrypting embedded Salsa20-protected values first, making the XML
export mostly useless, since passwords are scrambled.

Lastly, all CLI commands received a dedicated -h/--help option.
2018-10-19 21:49:54 +02:00
..
autotype Introduce synchronize merge method 2018-09-30 09:36:39 -04:00
browser Add CLI tests and improve coding style and i18n 2018-10-19 21:49:54 +02:00
cli Add CLI tests and improve coding style and i18n 2018-10-19 21:49:54 +02:00
core Add CLI tests and improve coding style and i18n 2018-10-19 21:49:54 +02:00
crypto Add CLI tests and improve coding style and i18n 2018-10-19 21:49:54 +02:00
format Add CLI tests and improve coding style and i18n 2018-10-19 21:49:54 +02:00
gui Add CLI tests and improve coding style and i18n 2018-10-19 21:49:54 +02:00
keys Add a new database settings wizard 2018-09-25 21:12:47 +02:00
proxy Merge branch 'master' 2018-08-24 09:42:38 -04:00
qrcode Add QR code generator for TOTP export (#1167) 2018-10-19 14:42:49 -04:00
sshagent Add a new database settings wizard 2018-09-25 21:12:47 +02:00
streams Formatting the code. 2018-03-31 16:01:30 -04:00
totp Add QR code generator for TOTP export (#1167) 2018-10-19 14:42:49 -04:00
touchid Add a new database settings wizard 2018-09-25 21:12:47 +02:00
zxcvbn Correct zxcvbn build on windows & snap build 2018-02-21 21:59:42 -05:00
CMakeLists.txt Add CLI tests and improve coding style and i18n 2018-10-19 21:49:54 +02:00
config-keepassx.h.cmake Add TouchID support on macOS 2018-09-18 22:42:05 -04:00
main.cpp Add CLI tests and improve coding style and i18n 2018-10-19 21:49:54 +02:00
version.h.cmake Display git revision in about dialog. 2015-07-18 13:14:13 +02:00