summaryrefslogtreecommitdiffstats
path: root/sinksh/syntax_modules/sink_list.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-11-01 23:28:08 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-11-01 23:28:08 +0100
commit1b8eb3b19a8793fb225bdc785ebc10bea63bbb36 (patch)
tree54cd7fe526535df88c9ee1faa10aa3fce6f1a076 /sinksh/syntax_modules/sink_list.cpp
parente1a3aebafca9a9447a393100db4fc45943551630 (diff)
downloadsink-1b8eb3b19a8793fb225bdc785ebc10bea63bbb36.tar.gz
sink-1b8eb3b19a8793fb225bdc785ebc10bea63bbb36.zip
Ensure we get a return code
Diffstat (limited to 'sinksh/syntax_modules/sink_list.cpp')
-rw-r--r--sinksh/syntax_modules/sink_list.cpp6
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
177Syntax::List syntax() 175Syntax::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}