CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
cmd_info.h
Go to the documentation of this file.
1 
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_
virtual std::string GetUsage() const
Definition: cmd_info.h:25
virtual ParameterList GetParams() const
Definition: cmd_info.h:28
static Parameter Optional(const std::string &key, char short_key, const std::string &arg_name, const std::string &desc)
Definition: command.h:73
virtual std::string GetBrief() const
Definition: cmd_info.h:17
virtual std::string GetName() const
Definition: cmd_info.h:16
static Parameter Switch(const std::string &key, char short_key, const std::string &desc)
Definition: command.h:79
virtual int Main(const Options &options)
Definition: cmd_info.cc:20
std::vector< Parameter > ParameterList
Definition: command.h:92
virtual std::string GetDescription() const
Definition: cmd_info.h:20