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