diff options
author | Aaron Seigo <aseigo@kde.org> | 2015-12-23 11:43:37 +0100 |
---|---|---|
committer | Aaron Seigo <aseigo@kde.org> | 2015-12-23 11:43:37 +0100 |
commit | 071f4ef0122a8bfceeda9a10b41e85ad9a34a28d (patch) | |
tree | e5d1cb7efcac5eb16f4848619ff06142906b6cea /akonadi2_cli/main.cpp | |
parent | 255d73af197faf8437343abc10bd98cca2057a1e (diff) | |
download | sink-071f4ef0122a8bfceeda9a10b41e85ad9a34a28d.tar.gz sink-071f4ef0122a8bfceeda9a10b41e85ad9a34a28d.zip |
vastly simplify by getting rid of Module as a base class
just a move slightly more towards functional
Diffstat (limited to 'akonadi2_cli/main.cpp')
-rw-r--r-- | akonadi2_cli/main.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/akonadi2_cli/main.cpp b/akonadi2_cli/main.cpp index 1a036d0..d23e070 100644 --- a/akonadi2_cli/main.cpp +++ b/akonadi2_cli/main.cpp | |||
@@ -36,9 +36,6 @@ | |||
36 | 36 | ||
37 | int main(int argc, char *argv[]) | 37 | int main(int argc, char *argv[]) |
38 | { | 38 | { |
39 | // load all modules | ||
40 | Module::loadModules(); | ||
41 | |||
42 | const bool interactive = isatty(fileno(stdin)); | 39 | const bool interactive = isatty(fileno(stdin)); |
43 | const bool startRepl = (argc == 1) && interactive; | 40 | const bool startRepl = (argc == 1) && interactive; |
44 | //TODO: make a json command parse cause that would be awesomesauce | 41 | //TODO: make a json command parse cause that would be awesomesauce |
@@ -67,5 +64,5 @@ int main(int argc, char *argv[]) | |||
67 | 64 | ||
68 | QStringList commands = app.arguments(); | 65 | QStringList commands = app.arguments(); |
69 | commands.removeFirst(); | 66 | commands.removeFirst(); |
70 | return Module::run(commands); | 67 | return Module::self()->run(commands); |
71 | } | 68 | } |