CernVM-FS  2.13.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 "
21  "exposes it "
22  "to the user.";
23  }
24  ParameterList GetParams() const;
25  int Main(const ArgumentList &args);
26 
27  protected:
28  bool Exists(const std::string &repository, const std::string &file) const;
29 };
30 
31 class CommandVersion : public Command {
32  public:
34  virtual std::string GetName() const { return "version"; }
35  virtual std::string GetDescription() const {
36  return "Prints the version of CernVM-FS";
37  }
38  ParameterList GetParams() const { return ParameterList(); }
39  int Main(const ArgumentList &args);
40 };
41 
42 } // namespace swissknife
43 
44 #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)