cli: main: Wire up CommandList
This commit is contained in:
parent
45505e4447
commit
5d702c9a95
@ -10,7 +10,6 @@
|
|||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
|
||||||
#include <exception>
|
#include <exception>
|
||||||
#include "encodingdetector.h"
|
#include "encodingdetector.h"
|
||||||
#include "pdfprocessor.h"
|
#include "pdfprocessor.h"
|
||||||
@ -21,6 +20,7 @@
|
|||||||
#include "commanddelete.h"
|
#include "commanddelete.h"
|
||||||
#include "commandupdate.h"
|
#include "commandupdate.h"
|
||||||
#include "commandsearch.h"
|
#include "commandsearch.h"
|
||||||
|
#include "commandlist.h"
|
||||||
#include "databasefactory.h"
|
#include "databasefactory.h"
|
||||||
#include "logger.h"
|
#include "logger.h"
|
||||||
#include "sandboxedprocessor.h"
|
#include "sandboxedprocessor.h"
|
||||||
@ -50,6 +50,10 @@ Command *commandFromName(QString name, SqliteDbService &dbService)
|
|||||||
{
|
{
|
||||||
return new CommandSearch(dbService);
|
return new CommandSearch(dbService);
|
||||||
}
|
}
|
||||||
|
if(name == "list")
|
||||||
|
{
|
||||||
|
return new CommandList(dbService);
|
||||||
|
}
|
||||||
|
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user