1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
3 #include "cli/featurelistcommand.hpp"
4 #include "cli/featureutility.hpp"
5 #include "base/logger.hpp"
6 #include "base/convert.hpp"
7 #include "base/console.hpp"
8 #include <boost/algorithm/string/join.hpp>
11 using namespace icinga;
12 namespace po = boost::program_options;
14 REGISTER_CLICOMMAND("feature/list", FeatureListCommand);
16 String FeatureListCommand::GetDescription() const
18 return "Lists all available Icinga 2 features.";
21 String FeatureListCommand::GetShortDescription() const
23 return "lists all available features";
27 * The entry point for the "feature list" CLI command.
29 * @returns An exit status.
31 int FeatureListCommand::Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const
33 return FeatureUtility::ListFeatures();