mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 08:04:14 +02:00
parent
a2b701ad44
commit
fec1266b1b
@ -144,6 +144,13 @@ static char *ConsoleCompleteHelper(const char *word, int state)
|
|||||||
}
|
}
|
||||||
|
|
||||||
Type::Ptr type = value.GetReflectionType();
|
Type::Ptr type = value.GetReflectionType();
|
||||||
|
|
||||||
|
for (int i = 0; i < type->GetFieldCount(); i++) {
|
||||||
|
Field field = type->GetFieldInfo(i);
|
||||||
|
|
||||||
|
AddSuggestion(matches, word, pword + "." + field.Name);
|
||||||
|
}
|
||||||
|
|
||||||
Object::Ptr prototype = type->GetPrototype();
|
Object::Ptr prototype = type->GetPrototype();
|
||||||
Dictionary::Ptr dict = dynamic_pointer_cast<Dictionary>(prototype);
|
Dictionary::Ptr dict = dynamic_pointer_cast<Dictionary>(prototype);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user