[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [akonadi-next/feature/new_cli] akonadi2_cli: stub in where command line tokenization will live
From: Aaron Seigo <aseigo () kde ! org>
Date: 2015-12-23 15:45:05
Message-ID: E1aBlb7-00076T-Ug () scm ! kde ! org
[Download RAW message or body]
Git commit afba02ad5fc52acf84a18f67f38b6b75267a31c0 by Aaron Seigo.
Committed on 23/12/2015 at 15:40.
Pushed by aseigo into branch 'feature/new_cli'.
stub in where command line tokenization will live
M +5 -0 akonadi2_cli/module.cpp
M +2 -0 akonadi2_cli/module.h
http://commits.kde.org/akonadi-next/afba02ad5fc52acf84a18f67f38b6b75267a31c0
diff --git a/akonadi2_cli/module.cpp b/akonadi2_cli/module.cpp
index 125caaa..5fd68b4 100644
--- a/akonadi2_cli/module.cpp
+++ b/akonadi2_cli/module.cpp
@@ -157,4 +157,9 @@ Module::SyntaxList Module::nearestSyntax(const QStringL=
ist &words, const QString
return matches;
}
=
+QStringList Module::tokenize(const QString &text)
+{
+ //TODO: properly tokenize (e.g. "foo bar" should not become ['"foo', '=
bar"']
+ return text.split(" ");
+}
=
diff --git a/akonadi2_cli/module.h b/akonadi2_cli/module.h
index d2745d0..1149f4f 100644
--- a/akonadi2_cli/module.h
+++ b/akonadi2_cli/module.h
@@ -59,6 +59,8 @@ public:
=
bool run(const QStringList &commands);
=
+ static QStringList tokenize(const QString &text);
+
private:
Module();
Command matches(const QStringList &commands) const;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic