GCC Code Coverage Report
Directory: cvmfs/ Exec Total Coverage
File: cvmfs/swissknife_info.h Lines: 0 13 0.0 %
Date: 2019-02-03 02:48:13 Branches: 0 4 0.0 %

Line Branch Exec Source
1
/**
2
 * This file is part of the CernVM File System.
3
 */
4
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:
16
  ~CommandInfo() { }
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:
32
  ~CommandVersion() { }
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
  }
39
  ParameterList GetParams() const {
40
    return ParameterList();
41
  }
42
  int Main(const ArgumentList &args);
43
};
44
45
}  // namespace swissknife
46
47
#endif  // CVMFS_SWISSKNIFE_INFO_H_