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 IMPORT_HPP
10 : #define IMPORT_HPP
11 :
12 : #include "coloredkdbio.hpp"
13 : #include <command.hpp>
14 : #include <kdb.hpp>
15 :
16 : class ImportCommand : public Command
17 : {
18 : kdb::KDB kdb;
19 :
20 : public:
21 : ImportCommand ();
22 : ~ImportCommand ();
23 :
24 87 : virtual std::string getShortOptions () override
25 : {
26 261 : return "scEN";
27 : }
28 :
29 87 : virtual std::string getSynopsis () override
30 : {
31 261 : return "<destination> [<format>]";
32 : }
33 :
34 165 : virtual std::string getShortHelpText () override
35 : {
36 495 : return "Import configuration to the key database.";
37 : }
38 :
39 87 : virtual std::string getLongHelpText () override
40 : {
41 : return "The import utility allows you to import\n"
42 261 : "all or parts of the configuration from stdin.\n";
43 : }
44 :
45 : virtual int execute (Cmdline const & cmdline) override;
46 : };
47 :
48 : #endif
|