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 MERGE_HPP
10 : #define MERGE_HPP
11 :
12 : #include <command.hpp>
13 : #include <kdb.hpp>
14 :
15 : using namespace std;
16 :
17 : class MergeCommand : public Command
18 : {
19 : kdb::KDB kdb;
20 :
21 : public:
22 : MergeCommand ();
23 : ~MergeCommand ();
24 :
25 : virtual int execute (Cmdline const & cmdline) override;
26 :
27 0 : virtual std::string getShortOptions () override
28 : {
29 0 : return "fsi";
30 : }
31 :
32 0 : virtual std::string getSynopsis () override
33 : {
34 0 : return "[options] ourpath theirpath basepath resultpath";
35 : }
36 :
37 78 : virtual std::string getShortHelpText () override
38 : {
39 234 : return "Three-way merge of KeySets.";
40 : }
41 :
42 0 : virtual std::string getLongHelpText () override
43 : {
44 : return "Does a three-way merge between keysets.\n"
45 : "On success the resulting keyset will be saved to mergepath.\n"
46 0 : "On unresolved conflicts nothing will be changed.\n";
47 : }
48 : };
49 :
50 : #endif
|