Revision 3f984668
Added by Marc Dequènes about 14 years ago
- ID 3f98466868f60ec29793532960f01c329ab4d412
bin/shadowwalker | ||
---|---|---|
|
||
self.short_desc = "Search items"
|
||
self.usages_params = [
|
||
"[:objects=<object>[,<object>]...] [:aspects=<aspect>[,<aspect>]...] [<field>=<value>] [:parents|:siblings|:children|:ancestors|:successors=<item-full-handle>[,<item-full-handle>]] ..."
|
||
"[:objects=<object>[,<object>]...] [:aspects=<aspect>[,<aspect>]...] [[filter:]<field>=<value>] [:parents|:siblings|:children|:ancestors|:successors=<item-full-handle>[,<item-full-handle>]] ..."
|
||
]
|
||
self.usage_extra_info = "Criterias are AND-ed, but lists of values for a criteria are OR-ed."
|
||
end
|
||
... | ... | |
res = LdapShadows::Manipulation.items_find_from_strings(@shadow, args)
|
||
unless res.empty?
|
||
display_lines = []
|
||
res.each do |raw_item|
|
||
display_lines << LdapShadows::Manipulation.raw_item_info(@shadow, raw_item)[:name]
|
||
res.each do |item_info|
|
||
display_lines << item_info[:name]
|
||
end
|
||
puts display_lines.join("\n")
|
||
end
|
Also available in: Unified diff
[evol] implemented vattrs search via post-filters (closes #141)