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 LIST_H
10 : #define LIST_H
11 :
12 : #include <command.hpp>
13 : #include <kdb.hpp>
14 :
15 : class ListCommand : public Command
16 : {
17 : public:
18 : ListCommand ();
19 : ~ListCommand ();
20 :
21 0 : virtual std::string getShortOptions () override
22 : {
23 0 : return "0";
24 : }
25 :
26 0 : virtual std::string getSynopsis () override
27 : {
28 0 : return "[provider]";
29 : }
30 :
31 78 : virtual std::string getShortHelpText () override
32 : {
33 234 : return "List all available or provided plugins.";
34 : }
35 :
36 0 : virtual std::string getLongHelpText () override
37 : {
38 0 : return "";
39 : }
40 :
41 : virtual int execute (Cmdline const & cmdline) override;
42 : };
43 :
44 : #endif
|