Revision 38e5c5db
Added by Marc Dequènes over 14 years ago
- ID 38e5c5db43a5c6082ff3f271426f5889810e5b04
lib/ldap_shadows/display_utils.rb | ||
---|---|---|
def self.display_item(item, options = {})
|
||
obj_human_name = Translator.translate_object_name(item.class.handle)
|
||
name = item.human_name
|
||
name += " [#{item.name}]" if options[:handles]
|
||
name += " [#{item.full_handle}]" if options[:handles]
|
||
puts "=== #{obj_human_name}: #{name} ==="
|
||
|
||
if options[:debug]
|
||
... | ... | |
puts "=== #{title} (#{item_list.size}) ==="
|
||
item_list.each do |item|
|
||
str = item.human_name
|
||
str += " [#{item.name}]" if options[:handles]
|
||
str += " [#{item.full_handle}]" if options[:handles]
|
||
str += ": #{item.human_description}" unless item.human_description.empty?
|
||
puts str
|
||
end
|
Also available in: Unified diff
[evol] introduce item 'full-handle' and reorganize command arguments, and renamed commands