| Line |
Branch |
Exec |
Source |
| 1 |
|
|
/** |
| 2 |
|
|
* This file is part of the CernVM File System. |
| 3 |
|
|
*/ |
| 4 |
|
|
|
| 5 |
|
|
#ifndef CVMFS_PUBLISH_CMD_INFO_H_ |
| 6 |
|
|
#define CVMFS_PUBLISH_CMD_INFO_H_ |
| 7 |
|
|
|
| 8 |
|
|
#include <string> |
| 9 |
|
|
|
| 10 |
|
|
#include "publish/command.h" |
| 11 |
|
|
|
| 12 |
|
|
namespace publish { |
| 13 |
|
|
|
| 14 |
|
|
class CmdInfo : public Command { |
| 15 |
|
|
public: |
| 16 |
|
✗ |
virtual std::string GetName() const { return "info"; } |
| 17 |
|
✗ |
virtual std::string GetBrief() const { |
| 18 |
|
✗ |
return "Show summary information about a repository"; |
| 19 |
|
|
} |
| 20 |
|
✗ |
virtual std::string GetDescription() const { |
| 21 |
|
|
return "Shows high-level data about a repository, such as its name, " |
| 22 |
|
|
"whitelist expiry, etc. For stratum 0/1 repositories managed on the " |
| 23 |
|
✗ |
"machine, additionally shows the main configuration settings."; |
| 24 |
|
|
} |
| 25 |
|
✗ |
virtual std::string GetUsage() const { |
| 26 |
|
✗ |
return "[options] <repository name / URL>"; |
| 27 |
|
|
} |
| 28 |
|
✗ |
virtual ParameterList GetParams() const { |
| 29 |
|
✗ |
ParameterList p; |
| 30 |
|
✗ |
p.push_back(Parameter::Optional( |
| 31 |
|
|
"keychain", 'k', "directory", |
| 32 |
|
|
"Path to the directory containing the repository public key")); |
| 33 |
|
✗ |
p.push_back(Parameter::Switch( |
| 34 |
|
|
"meta-info", 'm', "Print the repository global meta information")); |
| 35 |
|
✗ |
p.push_back(Parameter::Optional("stats", 's', "file", |
| 36 |
|
|
"Path to sqlite statistics output file")); |
| 37 |
|
✗ |
return p; |
| 38 |
|
|
} |
| 39 |
|
|
|
| 40 |
|
|
virtual int Main(const Options &options); |
| 41 |
|
|
}; // class CmdInfo |
| 42 |
|
|
|
| 43 |
|
|
} // namespace publish |
| 44 |
|
|
|
| 45 |
|
|
#endif // CVMFS_PUBLISH_CMD_INFO_H_ |
| 46 |
|
|
|