GCC Code Coverage Report


Directory: cvmfs/
File: cvmfs/publish/cmd_help.h
Date: 2024-04-21 02:33:16
Exec Total Coverage
Lines: 0 7 0.0%
Branches: 0 6 0.0%

Line Branch Exec Source
1 /**
2 * This file is part of the CernVM File System.
3 */
4
5 #ifndef CVMFS_PUBLISH_CMD_HELP_H_
6 #define CVMFS_PUBLISH_CMD_HELP_H_
7
8 #include <string>
9
10 #include "publish/command.h"
11
12 namespace publish {
13
14 class CmdHelp : public Command {
15 public:
16 explicit CmdHelp(CommandList *commands) : commands_(commands) { }
17 virtual std::string GetName() const { return "help"; }
18 virtual std::string GetBrief() const {
19 return "Print information about a command";
20 }
21 virtual std::string GetUsage() const { return "<command>"; }
22 virtual unsigned GetMinPlainArgs() const { return 1; }
23 virtual ParameterList GetParams() const { return ParameterList(); }
24
25 virtual int Main(const Options &options);
26
27 private:
28 CommandList *commands_;
29 };
30
31 } // namespace publish
32
33 #endif // CVMFS_PUBLISH_CMD_HELP_H_
34