| Line |
Branch |
Exec |
Source |
| 1 |
|
|
/** |
| 2 |
|
|
* This file is part of the CernVM File System. |
| 3 |
|
|
*/ |
| 4 |
|
|
|
| 5 |
|
|
#ifndef CVMFS_PUBLISH_CMD_COMMIT_H_ |
| 6 |
|
|
#define CVMFS_PUBLISH_CMD_COMMIT_H_ |
| 7 |
|
|
|
| 8 |
|
|
#include <string> |
| 9 |
|
|
#include <vector> |
| 10 |
|
|
|
| 11 |
|
|
#include "publish/command.h" |
| 12 |
|
|
|
| 13 |
|
|
namespace publish { |
| 14 |
|
|
|
| 15 |
|
|
class CmdCommit : public Command { |
| 16 |
|
|
public: |
| 17 |
|
✗ |
virtual std::string GetName() const { return "commit"; } |
| 18 |
|
|
|
| 19 |
|
✗ |
virtual std::string GetBrief() const { |
| 20 |
|
✗ |
return "Commit changes made inside the ephemeral shell"; |
| 21 |
|
|
} |
| 22 |
|
|
|
| 23 |
|
✗ |
virtual std::string GetDescription() const { |
| 24 |
|
✗ |
return "Commit new content from the ephemeral shell"; |
| 25 |
|
|
} |
| 26 |
|
|
|
| 27 |
|
✗ |
virtual std::string GetUsage() const { return "[options] <repository name>"; } |
| 28 |
|
|
|
| 29 |
|
✗ |
virtual ParameterList GetParams() const { |
| 30 |
|
✗ |
ParameterList p; |
| 31 |
|
✗ |
p.push_back(Parameter::Optional( |
| 32 |
|
|
"repo-config", 'x', "repository configuration", |
| 33 |
|
|
"Path to the configuration of the repository gateway")); |
| 34 |
|
✗ |
return p; |
| 35 |
|
|
} |
| 36 |
|
|
|
| 37 |
|
✗ |
virtual std::vector<std::string> GetExamples() const { |
| 38 |
|
✗ |
std::vector<std::string> e; |
| 39 |
|
✗ |
e.push_back("commit myrepo.cvmfs.io " |
| 40 |
|
|
"# commit changes to myrepo.cvmfs.io"); |
| 41 |
|
✗ |
return e; |
| 42 |
|
|
} |
| 43 |
|
|
|
| 44 |
|
|
virtual int Main(const Options &options); |
| 45 |
|
|
}; |
| 46 |
|
|
|
| 47 |
|
|
} // namespace publish |
| 48 |
|
|
|
| 49 |
|
|
#endif // CVMFS_PUBLISH_CMD_COMMIT_H_ |
| 50 |
|
|
|