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

Method GetArgumentSuggestions

lib/cli/pkirequestcommand.cpp:38–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38std::vector<String> PKIRequestCommand::GetArgumentSuggestions(const String& argument, const String& word) const
39{
40 if (argument == "key" || argument == "cert" || argument == "ca" || argument == "trustedcert")
41 return GetBashCompletionSuggestions("file", word);
42 else if (argument == "host")
43 return GetBashCompletionSuggestions("hostname", word);
44 else if (argument == "port")
45 return GetBashCompletionSuggestions("service", word);
46 else
47 return CLICommand::GetArgumentSuggestions(argument, word);
48}
49
50/**
51 * The entry point for the "pki request" CLI command.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected