mirror of https://github.com/Icinga/icinga2.git
parent
9d0f15d2c6
commit
a420cf9aa0
|
@ -25,6 +25,17 @@
|
|||
|
||||
using namespace icinga;
|
||||
|
||||
String FeatureUtility::GetFeaturesAvailablePath(void)
|
||||
{
|
||||
return Application::GetSysconfDir() + "/icinga2/features-available";
|
||||
}
|
||||
|
||||
String FeatureUtility::GetFeaturesEnabledPath(void)
|
||||
{
|
||||
return Application::GetSysconfDir() + "/icinga2/features-enabled";
|
||||
}
|
||||
|
||||
|
||||
std::vector<String> FeatureUtility::GetFieldCompletionSuggestions(FeatureCommandType fctype, const String& word)
|
||||
{
|
||||
std::vector<String> cache;
|
||||
|
|
|
@ -48,6 +48,8 @@ class FeatureUtility
|
|||
public:
|
||||
static std::vector<String> GetFieldCompletionSuggestions(FeatureCommandType fctype, const String& word);
|
||||
static bool GetFeatures(FeatureType ftype, std::vector<String>& features);
|
||||
static String GetFeaturesAvailablePath(void);
|
||||
static String GetFeaturesEnabledPath(void);
|
||||
|
||||
private:
|
||||
FeatureUtility(void);
|
||||
|
|
Loading…
Reference in New Issue