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 REMOUNT_HPP_
10 : #define REMOUNT_HPP_
11 :
12 : #include <mountbase.hpp>
13 :
14 : class RemountCommand : public MountBaseCommand
15 : {
16 : void getExistingMountpoint (Cmdline const & cl);
17 : void cloneMountpoint (Cmdline const & cl);
18 :
19 : std::string existingName;
20 :
21 : public:
22 : RemountCommand ();
23 : ~RemountCommand ();
24 :
25 1 : virtual std::string getShortOptions () override
26 : {
27 3 : return "i";
28 : }
29 :
30 1 : virtual std::string getSynopsis () override
31 : {
32 3 : return "<new filename> <new path> <existing mountpoint>";
33 : }
34 :
35 79 : virtual std::string getShortHelpText () override
36 : {
37 237 : return "Remount an existing backend with a different filename.";
38 : }
39 :
40 1 : virtual std::string getLongHelpText () override
41 : {
42 3 : return "";
43 : }
44 :
45 : virtual int execute (Cmdline const & cmdline) override;
46 : };
47 :
48 :
49 : #endif /* REMOUNT_HPP_ */
|