GCC Code Coverage Report


Directory: cvmfs/
File: cvmfs/swissknife_info.h
Date: 2024-04-21 02:33:16
Exec Total Coverage
Lines: 0 11 0.0%
Branches: 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_
48