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 CP_HPP
10 : #define CP_HPP
11 :
12 : #include "coloredkdbio.hpp"
13 : #include <command.hpp>
14 : #include <kdb.hpp>
15 :
16 : class CpCommand : public Command
17 : {
18 : kdb::KDB kdb;
19 :
20 : public:
21 : CpCommand ();
22 : ~CpCommand ();
23 :
24 9 : virtual std::string getShortOptions () override
25 : {
26 27 : return "rf";
27 : }
28 :
29 9 : virtual std::string getSynopsis () override
30 : {
31 27 : return "<source> <dest>";
32 : }
33 :
34 87 : virtual std::string getShortHelpText () override
35 : {
36 261 : return "Copy keys within the key database.";
37 : }
38 :
39 9 : virtual std::string getLongHelpText () override
40 : {
41 27 : return "";
42 : }
43 :
44 : virtual int execute (Cmdline const & cmdline) override;
45 : };
46 :
47 : #endif
|