Line data Source code
1 : /**
2 : * @file
3 : *
4 : * @brief
5 : *
6 : * @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
7 : */
8 :
9 : #ifndef CHECK_HPP
10 : #define CHECK_HPP
11 :
12 : #include <command.hpp>
13 :
14 : #include "coloredkdbio.hpp"
15 : #include <kdb.hpp>
16 :
17 : class CheckCommand : public Command
18 : {
19 : public:
20 : CheckCommand ();
21 : ~CheckCommand ();
22 :
23 102 : virtual std::string getShortOptions () override
24 : {
25 306 : return "fc";
26 : }
27 :
28 102 : virtual std::string getSynopsis () override
29 : {
30 306 : return "[<name>]";
31 : }
32 :
33 180 : virtual std::string getShortHelpText () override
34 : {
35 540 : return "Do some basic checks on a plugin.";
36 : }
37 :
38 102 : virtual std::string getLongHelpText () override
39 : {
40 : return "If no arguments are given checks on key database\n"
41 : "are done instead. Use -f to also do a write test\n"
42 : "(might change configuration files!)\n"
43 : "\n"
44 : "If a plugin name is given, checks will only be done with given plugin.\n"
45 : "Use -c to pass options to the plugin.\n"
46 : "\n"
47 306 : "Please report any output caused by official plugins to https://www.libelektra.org\n";
48 : }
49 :
50 : virtual int execute (Cmdline const & cmdline) override;
51 : };
52 :
53 : #endif
|