mirror of
https://github.com/Icinga/icinga2.git
synced 2025-06-27 17:04:29 +02:00
parent
44d961f119
commit
4554b70a97
@ -130,6 +130,20 @@ std::vector<String> RepositoryObjectCommand::GetPositionalSuggestions(const Stri
|
|||||||
const Type *ptype = Type::GetByName(m_Type);
|
const Type *ptype = Type::GetByName(m_Type);
|
||||||
ASSERT(ptype);
|
ASSERT(ptype);
|
||||||
return GetFieldCompletionSuggestions(ptype, word);
|
return GetFieldCompletionSuggestions(ptype, word);
|
||||||
|
} else if (m_Command == RepositoryCommandRemove) {
|
||||||
|
std::vector<String> suggestions;
|
||||||
|
|
||||||
|
String argName = "name=";
|
||||||
|
if (argName.Find(word) == 0)
|
||||||
|
suggestions.push_back(argName);
|
||||||
|
|
||||||
|
if (m_Type == "Service") {
|
||||||
|
String argHostName = "host_name=";
|
||||||
|
if (argHostName.Find(word) == 0)
|
||||||
|
suggestions.push_back(argHostName);
|
||||||
|
}
|
||||||
|
|
||||||
|
return suggestions;
|
||||||
} else
|
} else
|
||||||
return CLICommand::GetPositionalSuggestions(word);
|
return CLICommand::GetPositionalSuggestions(word);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user