CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
swissknife_info.h
Go to the documentation of this file.
1 
5 #ifndef CVMFS_SWISSKNIFE_INFO_H_
6 #define CVMFS_SWISSKNIFE_INFO_H_
7 
8 #include <string>
9 
10 #include "swissknife.h"
11 
12 namespace swissknife {
13 
14 class CommandInfo : public Command {
15  public:
17  virtual std::string GetName() const { return "info"; }
18  virtual std::string GetDescription() const {
19  return "CernVM File System repository information retrieval\n"
20  "This command reads the content of a .cvmfspublished file and exposes it "
21  "to the user.";
22  }
23  ParameterList GetParams() const;
24  int Main(const ArgumentList &args);
25 
26  protected:
27  bool Exists(const std::string &repository, const std::string &file) const;
28 };
29 
30 class CommandVersion : public Command {
31  public:
33  virtual std::string GetName() const {
34  return "version";
35  }
36  virtual std::string GetDescription() const {
37  return "Prints the version of CernVM-FS";
38  }
40  return ParameterList();
41  }
42  int Main(const ArgumentList &args);
43 };
44 
45 } // namespace swissknife
46 
47 #endif // CVMFS_SWISSKNIFE_INFO_H_
virtual std::string GetDescription() const
int Main(const ArgumentList &args)
std::vector< Parameter > ParameterList
Definition: swissknife.h:71
virtual std::string GetDescription() const
virtual std::string GetName() const
std::map< char, SharedPtr< std::string > > ArgumentList
Definition: swissknife.h:72
ParameterList GetParams() const
virtual std::string GetName() const
bool Exists(const std::string &repository, const std::string &file) const
ParameterList GetParams() const
int Main(const ArgumentList &args)