Cli: Implement GetFeature*Path() helpers

refs #7423
This commit is contained in:
Michael Friedrich 2014-10-21 18:12:17 +02:00
parent 9d0f15d2c6
commit a420cf9aa0
2 changed files with 13 additions and 0 deletions

View File

@ -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;

View File

@ -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);