1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
3 #ifndef OBJECTLISTCOMMAND_H
4 #define OBJECTLISTCOMMAND_H
6 #include "base/dictionary.hpp"
7 #include "base/array.hpp"
8 #include "cli/clicommand.hpp"
15 * The "object list" command.
19 class ObjectListCommand final : public CLICommand
22 DECLARE_PTR_TYPEDEFS(ObjectListCommand);
24 String GetDescription() const override;
25 String GetShortDescription() const override;
26 void InitParameters(boost::program_options::options_description& visibleDesc,
27 boost::program_options::options_description& hiddenDesc) const override;
28 int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
31 static void PrintTypeCounts(std::ostream& fp, const std::map<String, int>& type_count);
36 #endif /* OBJECTLISTCOMMAND_H */