]> granicus.if.org Git - icinga2/blob - lib/cli/daemoncommand.hpp
Merge pull request #7145 from Icinga/feature/dotnet-4.6
[icinga2] / lib / cli / daemoncommand.hpp
1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
2
3 #ifndef DAEMONCOMMAND_H
4 #define DAEMONCOMMAND_H
5
6 #include "cli/clicommand.hpp"
7
8 namespace icinga
9 {
10
11 /**
12  * The "daemon" CLI command.
13  *
14  * @ingroup cli
15  */
16 class DaemonCommand final : public CLICommand
17 {
18 public:
19         DECLARE_PTR_TYPEDEFS(DaemonCommand);
20
21         String GetDescription() const override;
22         String GetShortDescription() const override;
23         void InitParameters(boost::program_options::options_description& visibleDesc,
24                 boost::program_options::options_description& hiddenDesc) const override;
25         std::vector<String> GetArgumentSuggestions(const String& argument, const String& word) const override;
26         int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
27 };
28
29 }
30
31 #endif /* DAEMONCOMMAND_H */