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 METASET_HPP
10 : #define METASET_HPP
11 :
12 : #include "coloredkdbio.hpp"
13 :
14 : #include <command.hpp>
15 : #include <kdb.hpp>
16 :
17 : class MetaSetCommand : public Command
18 : {
19 : kdb::KDB kdb;
20 :
21 : public:
22 : MetaSetCommand ();
23 : ~MetaSetCommand ();
24 :
25 85 : virtual std::string getShortOptions () override
26 : {
27 255 : return "q";
28 : }
29 :
30 85 : virtual std::string getSynopsis () override
31 : {
32 255 : return "<key-name> <metaname> <metavalue>";
33 : }
34 :
35 163 : virtual std::string getShortHelpText () override
36 : {
37 489 : return "Set a metavalue.";
38 : }
39 :
40 85 : virtual std::string getLongHelpText () override
41 : {
42 255 : return "Meta key are information about keys.\n";
43 : }
44 :
45 : virtual int execute (Cmdline const & cmdline) override;
46 : };
47 :
48 : #endif
|