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("keychain", 'k', "directory", |
31 |
|
|
"Path to the directory containing the repository public key")); |
32 |
|
✗ |
p.push_back(Parameter::Switch("meta-info", 'm', |
33 |
|
|
"Print the repository global meta information")); |
34 |
|
✗ |
p.push_back(Parameter::Optional("stats", 's', "file", |
35 |
|
|
"Path to sqlite statistics output file")); |
36 |
|
✗ |
return p; |
37 |
|
|
} |
38 |
|
|
|
39 |
|
|
virtual int Main(const Options &options); |
40 |
|
|
}; // class CmdInfo |
41 |
|
|
|
42 |
|
|
} // namespace publish |
43 |
|
|
|
44 |
|
|
#endif // CVMFS_PUBLISH_CMD_INFO_H_ |
45 |
|
|
|