MCPcopy Create free account
hub / github.com/Icinga/icinga2 / GetArgumentSuggestions

Method GetArgumentSuggestions

lib/cli/nodesetupcommand.cpp:63–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63std::vector<String> NodeSetupCommand::GetArgumentSuggestions(const String& argument, const String& word) const
64{
65 if (argument == "key" || argument == "cert" || argument == "trustedcert")
66 return GetBashCompletionSuggestions("file", word);
67 else if (argument == "host")
68 return GetBashCompletionSuggestions("hostname", word);
69 else if (argument == "port")
70 return GetBashCompletionSuggestions("service", word);
71 else
72 return CLICommand::GetArgumentSuggestions(argument, word);
73}
74
75ImpersonationLevel NodeSetupCommand::GetImpersonationLevel() const
76{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected