GCC Code Coverage Report


Directory: cvmfs/
File: cvmfs/swissknife_info.h
Date: 2025-07-06 02:35:01
Exec Total Coverage
Lines: 0 9 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 "
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:
33 ~CommandVersion() { }
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_
45