diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-02-08 20:31:34 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-02-08 20:31:34 +0100 |
commit | b632a46e30e2159573c1decfbcbf13cb04fc6fe4 (patch) | |
tree | 7ccdd53d00a4a92825e775e3eac16e92775c2470 /sinksh/syntax_modules/sink_list.cpp | |
parent | 92baf12b456074725cfb74cba601dafd881c3a0a (diff) | |
download | sink-b632a46e30e2159573c1decfbcbf13cb04fc6fe4.tar.gz sink-b632a46e30e2159573c1decfbcbf13cb04fc6fe4.zip |
sinksh inspect
Diffstat (limited to 'sinksh/syntax_modules/sink_list.cpp')
-rw-r--r-- | sinksh/syntax_modules/sink_list.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sinksh/syntax_modules/sink_list.cpp b/sinksh/syntax_modules/sink_list.cpp index feb582e..f6cae6b 100644 --- a/sinksh/syntax_modules/sink_list.cpp +++ b/sinksh/syntax_modules/sink_list.cpp | |||
@@ -64,7 +64,7 @@ QByteArray baIfAvailable(const QStringList &list) | |||
64 | bool list(const QStringList &args_, State &state) | 64 | bool list(const QStringList &args_, State &state) |
65 | { | 65 | { |
66 | if (args_.isEmpty()) { | 66 | if (args_.isEmpty()) { |
67 | state.printError(QObject::tr("Options: $type [--resource $resource] [--compact] [--filter $property=$value] [--showall|--show $property]")); | 67 | state.printError(QObject::tr("Options: $type [--resource $resource] [--compact] [--filter $property=$value] [--id $id] [--showall|--show $property]")); |
68 | return false; | 68 | return false; |
69 | } | 69 | } |
70 | 70 | ||
@@ -84,6 +84,11 @@ bool list(const QStringList &args_, State &state) | |||
84 | query.filter(filter.at(0).toLatin1(), QVariant::fromValue(Sink::ApplicationDomain::Reference{filter.at(1).toLatin1()})); | 84 | query.filter(filter.at(0).toLatin1(), QVariant::fromValue(Sink::ApplicationDomain::Reference{filter.at(1).toLatin1()})); |
85 | } | 85 | } |
86 | } | 86 | } |
87 | if (options.options.contains("id")) { | ||
88 | for (const auto &f : options.options.value("id")) { | ||
89 | query.filter(f.toUtf8()); | ||
90 | } | ||
91 | } | ||
87 | auto compact = options.options.contains("compact"); | 92 | auto compact = options.options.contains("compact"); |
88 | if (!options.options.contains("showall")) { | 93 | if (!options.options.contains("showall")) { |
89 | if (options.options.contains("show")) { | 94 | if (options.options.contains("show")) { |