diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-07 23:40:52 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-07 23:40:52 +0200 |
commit | 3c05b5816aa0fb978686b0ed16a02336e0981a0e (patch) | |
tree | a05662f3635ac9364c2bde16eea0f915190cfb1f /sinksh/sinksh_utils.cpp | |
parent | da2b049e248c1ad7efeb53685158a205335e4e36 (diff) | |
download | sink-3c05b5816aa0fb978686b0ed16a02336e0981a0e.tar.gz sink-3c05b5816aa0fb978686b0ed16a02336e0981a0e.zip |
sinksh trace command including autocompletion
The sinksh command allows to easily turn tracing for certain areas on
or off.
Diffstat (limited to 'sinksh/sinksh_utils.cpp')
-rw-r--r-- | sinksh/sinksh_utils.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sinksh/sinksh_utils.cpp b/sinksh/sinksh_utils.cpp index 2a6f628..14b0aab 100644 --- a/sinksh/sinksh_utils.cpp +++ b/sinksh/sinksh_utils.cpp | |||
@@ -21,6 +21,7 @@ | |||
21 | #include "sinksh_utils.h" | 21 | #include "sinksh_utils.h" |
22 | 22 | ||
23 | #include "common/store.h" | 23 | #include "common/store.h" |
24 | #include "common/log.h" | ||
24 | 25 | ||
25 | #include "utils.h" | 26 | #include "utils.h" |
26 | 27 | ||
@@ -115,10 +116,7 @@ QStringList resourceIds(State &state) | |||
115 | 116 | ||
116 | QStringList debugareaCompleter(const QStringList &, const QString &fragment, State &state) | 117 | QStringList debugareaCompleter(const QStringList &, const QString &fragment, State &state) |
117 | { | 118 | { |
118 | QStringList list; | 119 | return Utils::filteredCompletions(Sink::Log::debugAreas().toList(), fragment); |
119 | list << "foo.bar" << "tar.war" << "bluub"; | ||
120 | // return Utils::filteredCompletions(debugAreas(state), fragment); | ||
121 | return Utils::filteredCompletions(list, fragment); | ||
122 | } | 120 | } |
123 | 121 | ||
124 | QStringList resourceCompleter(const QStringList &, const QString &fragment, State &state) | 122 | QStringList resourceCompleter(const QStringList &, const QString &fragment, State &state) |