Line data Source code
1 : /**
2 : * @file
3 : *
4 : * @brief header file of spec mount command
5 : *
6 : * @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
7 : *
8 : */
9 :
10 :
11 : #ifndef GLOBAL_MOUNT_HPP
12 : #define GLOBAL_MOUNT_HPP
13 :
14 : #include <mountbase.hpp>
15 :
16 : namespace kdb
17 : {
18 : namespace tools
19 : {
20 : class MountBackendInterface;
21 : }
22 : } // namespace kdb
23 :
24 : class GlobalMountCommand : public MountBaseCommand
25 : {
26 : void outputMtab (Cmdline const & cl);
27 : std::vector<std::string> getMtab ();
28 : void setMountpoint (Cmdline const & cl);
29 : void buildBackend (Cmdline const & cl);
30 :
31 : public:
32 : GlobalMountCommand ();
33 : ~GlobalMountCommand ();
34 :
35 5 : virtual std::string getShortOptions () override
36 : {
37 15 : return "W"; // TODO: c not implemented
38 : }
39 :
40 5 : virtual std::string getSynopsis () override
41 : {
42 15 : return "[plugin [config] [..]]";
43 : }
44 :
45 161 : virtual std::string getShortHelpText () override
46 : {
47 483 : return "Globally mount given plugins.";
48 : }
49 :
50 5 : virtual std::string getLongHelpText () override
51 : {
52 15 : return "";
53 : }
54 :
55 : virtual int execute (Cmdline const & cmdline) override;
56 : };
57 :
58 : #endif
|