mirror of https://github.com/Icinga/icinga2.git
parent
5ddf5b3293
commit
c3ce123f3d
|
@ -53,19 +53,14 @@ int FeatureListCommand::Run(const boost::program_options::variables_map& vm, con
|
|||
<< "Ignoring parameters: " << boost::algorithm::join(ap, " ");
|
||||
}
|
||||
|
||||
std::vector<String> available_features;
|
||||
std::vector<String> disabled_features;
|
||||
std::vector<String> enabled_features;
|
||||
|
||||
if (!FeatureUtility::GetFeatures(FeaturesAvailable, available_features))
|
||||
return 1;
|
||||
if (!FeatureUtility::GetFeatures(FeaturesDisabled, disabled_features))
|
||||
return 1;
|
||||
if (!FeatureUtility::GetFeatures(FeaturesEnabled, enabled_features))
|
||||
return 1;
|
||||
|
||||
std::cout << ConsoleColorTag(Console_ForegroundBlue | Console_Bold) << "Available features: " << ConsoleColorTag(Console_Normal)
|
||||
<< boost::algorithm::join(available_features, " ") << "\n";
|
||||
std::cout << ConsoleColorTag(Console_ForegroundRed | Console_Bold) << "Disabled features: " << ConsoleColorTag(Console_Normal)
|
||||
<< boost::algorithm::join(disabled_features, " ") << "\n";
|
||||
std::cout << ConsoleColorTag(Console_ForegroundGreen | Console_Bold) << "Enabled features: " << ConsoleColorTag(Console_Normal)
|
||||
|
|
Loading…
Reference in New Issue