]> granicus.if.org Git - icinga2/blob - lib/cli/variablelistcommand.hpp
Merge pull request #7145 from Icinga/feature/dotnet-4.6
[icinga2] / lib / cli / variablelistcommand.hpp
1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
2
3 #ifndef VARIABLELISTCOMMAND_H
4 #define VARIABLELISTCOMMAND_H
5
6 #include "base/dictionary.hpp"
7 #include "base/array.hpp"
8 #include "cli/clicommand.hpp"
9 #include <ostream>
10
11 namespace icinga
12 {
13
14 /**
15  * The "variable list" command.
16  *
17  * @ingroup cli
18  */
19 class VariableListCommand final : public CLICommand
20 {
21 public:
22         DECLARE_PTR_TYPEDEFS(VariableListCommand);
23
24         String GetDescription() const override;
25         String GetShortDescription() const override;
26         int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
27
28 private:
29         static void PrintVariable(std::ostream& fp, const String& message);
30 };
31
32 }
33
34 #endif /* VARIABLELISTCOMMAND_H */