Revision 26a3ca45
Added by Marc Dequènes over 15 years ago
- ID 26a3ca452bdc8e837baee4a42b170d9ffd67196c
bin/shadowwalker | ||
---|---|---|
obj_hdl = args.shift.singularize
|
||
case obj_hdl
|
||
when ':object'
|
||
puts "=== List of LDAP objects ==="
|
||
$ldapctl.objects.each do |obj_name|
|
||
list = $ldapctl.objects
|
||
puts "=== List of LDAP objects (#{list.size}) ==="
|
||
list.each do |obj_name|
|
||
puts " - #{obj_name}"
|
||
end
|
||
when ':aspect'
|
||
... | ... | |
end
|
||
|
||
subobj_human_name = Translator.translate_object_name(subobj_hdl)
|
||
puts "=== List of LDAP aspects of #{subobj_human_name.pluralize} ==="
|
||
obj_klass.possible_aspects.each do |subobj_name|
|
||
list = obj_klass.possible_aspects
|
||
puts "=== List of LDAP aspects of #{subobj_human_name.pluralize} (#{list.size}) ==="
|
||
list.each do |subobj_name|
|
||
puts " - #{subobj_name}"
|
||
end
|
||
else
|
Also available in: Unified diff
[evol] the 'list' command now display the number of items