From 5d702c9a9504bd7e80681b629d2b80cd680ab1ff Mon Sep 17 00:00:00 2001 From: Albert S Date: Thu, 2 Jun 2022 14:35:48 +0200 Subject: [PATCH] cli: main: Wire up CommandList --- cli/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cli/main.cpp b/cli/main.cpp index 29aa080..a269044 100644 --- a/cli/main.cpp +++ b/cli/main.cpp @@ -10,7 +10,6 @@ #include #include #include - #include #include "encodingdetector.h" #include "pdfprocessor.h" @@ -21,6 +20,7 @@ #include "commanddelete.h" #include "commandupdate.h" #include "commandsearch.h" +#include "commandlist.h" #include "databasefactory.h" #include "logger.h" #include "sandboxedprocessor.h" @@ -50,6 +50,10 @@ Command *commandFromName(QString name, SqliteDbService &dbService) { return new CommandSearch(dbService); } + if(name == "list") + { + return new CommandList(dbService); + } return nullptr; }