2019-02-25 14:48:22 +01:00
|
|
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
2017-08-23 12:12:43 +02:00
|
|
|
|
|
|
|
#ifndef CALISTCOMMAND_H
|
|
|
|
#define CALISTCOMMAND_H
|
|
|
|
|
|
|
|
#include "cli/clicommand.hpp"
|
|
|
|
|
|
|
|
namespace icinga
|
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The "ca list" command.
|
|
|
|
*
|
|
|
|
* @ingroup cli
|
|
|
|
*/
|
2018-01-04 06:11:04 +01:00
|
|
|
class CAListCommand final : public CLICommand
|
2017-08-23 12:12:43 +02:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
DECLARE_PTR_TYPEDEFS(CAListCommand);
|
|
|
|
|
2018-01-04 05:12:56 +01:00
|
|
|
String GetDescription() const override;
|
|
|
|
String GetShortDescription() const override;
|
|
|
|
void InitParameters(boost::program_options::options_description& visibleDesc,
|
2017-12-19 15:50:05 +01:00
|
|
|
boost::program_options::options_description& hiddenDesc) const override;
|
2018-01-04 05:12:56 +01:00
|
|
|
int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
|
2017-08-23 12:12:43 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
static void PrintRequest(const String& requestFile);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* CALISTCOMMAND_H */
|