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

Method GetArgumentSuggestions

lib/cli/pkisavecertcommand.cpp:39–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected