diff --git a/lib/cli/repositoryobjectcommand.cpp b/lib/cli/repositoryobjectcommand.cpp index cddbc7c40..c2a67521c 100644 --- a/lib/cli/repositoryobjectcommand.cpp +++ b/lib/cli/repositoryobjectcommand.cpp @@ -130,6 +130,20 @@ std::vector RepositoryObjectCommand::GetPositionalSuggestions(const Stri const Type *ptype = Type::GetByName(m_Type); ASSERT(ptype); return GetFieldCompletionSuggestions(ptype, word); + } else if (m_Command == RepositoryCommandRemove) { + std::vector 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 return CLICommand::GetPositionalSuggestions(word); }