Add list to keepassxc-cli

This commit is contained in:
Louis-Bertrand Varin 2017-02-13 22:29:20 -05:00
parent 7636a559f9
commit 7ca475f968
4 changed files with 136 additions and 0 deletions

View file

@ -21,6 +21,7 @@
#include <QCoreApplication>
#include <QStringList>
#include <cli/List.h>
#include <cli/Merge.h>
#include <cli/Extract.h>
#include <cli/EntropyMeter.h>
@ -64,6 +65,11 @@ int main(int argc, char **argv)
++argv;
--argc;
if (commandName == "list") {
argv[0] = const_cast<char*>("keepassxc-cli list");
return List::execute(argc, argv);
}
if (commandName == "merge") {
argv[0] = const_cast<char*>("keepassxc-cli merge");
return Merge::execute(argc, argv);