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 CACHE_HPP
10 : #define CACHE_HPP
11 :
12 : #include "coloredkdbio.hpp"
13 : #include <command.hpp>
14 :
15 : class CacheCommand : public Command
16 : {
17 : public:
18 : CacheCommand ();
19 : ~CacheCommand ();
20 :
21 0 : virtual std::string getShortOptions () override
22 : {
23 0 : return "";
24 : }
25 :
26 0 : virtual std::string getSynopsis () override
27 : {
28 0 : return "{enable,disable,clear}";
29 : }
30 :
31 78 : virtual std::string getShortHelpText () override
32 : {
33 234 : return "Enable, disable or clear the cache.";
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
|