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