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 REMOVE_HPP
10 : #define REMOVE_HPP
11 :
12 : #include <command.hpp>
13 :
14 : #include <kdb.hpp>
15 :
16 : class RemoveCommand : public Command
17 : {
18 : kdb::KDB kdb;
19 :
20 : public:
21 : RemoveCommand ();
22 : ~RemoveCommand ();
23 :
24 323 : virtual std::string getShortOptions () override
25 : {
26 969 : return "rfE";
27 : }
28 :
29 323 : virtual std::string getSynopsis () override
30 : {
31 969 : return "<name>";
32 : }
33 :
34 401 : virtual std::string getShortHelpText () override
35 : {
36 1203 : return "Remove key(s) from key database.";
37 : }
38 :
39 323 : virtual std::string getLongHelpText () override
40 : {
41 969 : return "";
42 : }
43 :
44 : virtual int execute (Cmdline const & cmdline) override;
45 : };
46 :
47 : #endif
|