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 KDB_FIND_H
10 : #define KDB_FIND_H
11 :
12 : #include "coloredkdbio.hpp"
13 : #include <command.hpp>
14 : #include <kdb.hpp>
15 :
16 : class FindCommand : public Command
17 : {
18 : public:
19 : FindCommand ();
20 : ~FindCommand ();
21 :
22 2 : virtual std::string getShortOptions () override
23 : {
24 6 : return "0";
25 : }
26 :
27 2 : virtual std::string getSynopsis () override
28 : {
29 6 : return "<name>";
30 : }
31 :
32 80 : virtual std::string getShortHelpText () override
33 : {
34 240 : return "Find keys with a given regex.";
35 : }
36 :
37 2 : virtual std::string getLongHelpText () override
38 : {
39 6 : return "";
40 : }
41 :
42 : virtual int execute (Cmdline const & cmdline) override;
43 : };
44 :
45 : #endif
|