diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-11-01 23:28:08 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-11-01 23:28:08 +0100 |
commit | 1b8eb3b19a8793fb225bdc785ebc10bea63bbb36 (patch) | |
tree | 54cd7fe526535df88c9ee1faa10aa3fce6f1a076 /sinksh/syntax_modules | |
parent | e1a3aebafca9a9447a393100db4fc45943551630 (diff) | |
download | sink-1b8eb3b19a8793fb225bdc785ebc10bea63bbb36.tar.gz sink-1b8eb3b19a8793fb225bdc785ebc10bea63bbb36.zip |
Ensure we get a return code
Diffstat (limited to 'sinksh/syntax_modules')
-rw-r--r-- | sinksh/syntax_modules/sink_list.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sinksh/syntax_modules/sink_list.cpp b/sinksh/syntax_modules/sink_list.cpp index 7421b89..e4c4837 100644 --- a/sinksh/syntax_modules/sink_list.cpp +++ b/sinksh/syntax_modules/sink_list.cpp | |||
@@ -169,14 +169,12 @@ bool list(const QStringList &args_, State &state) | |||
169 | } | 169 | } |
170 | } | 170 | } |
171 | state.flushTable(); | 171 | state.flushTable(); |
172 | state.commandFinished(); | 172 | return true; |
173 | |||
174 | return false; | ||
175 | } | 173 | } |
176 | 174 | ||
177 | Syntax::List syntax() | 175 | Syntax::List syntax() |
178 | { | 176 | { |
179 | Syntax list("list", QObject::tr("List all resources, or the contents of one or more resources."), &SinkList::list, Syntax::EventDriven); | 177 | Syntax list("list", QObject::tr("List all resources, or the contents of one or more resources."), &SinkList::list, Syntax::NotInteractive); |
180 | list.completer = &SinkshUtils::resourceOrTypeCompleter; | 178 | list.completer = &SinkshUtils::resourceOrTypeCompleter; |
181 | return Syntax::List() << list; | 179 | return Syntax::List() << list; |
182 | } | 180 | } |