Line |
Branch |
Exec |
Source |
1 |
|
|
/** |
2 |
|
|
* This file is part of the CernVM File System. |
3 |
|
|
*/ |
4 |
|
|
|
5 |
|
|
#ifndef CVMFS_PUBLISH_CMD_ZPIPE_H_ |
6 |
|
|
#define CVMFS_PUBLISH_CMD_ZPIPE_H_ |
7 |
|
|
|
8 |
|
|
#include <string> |
9 |
|
|
|
10 |
|
|
#include "publish/command.h" |
11 |
|
|
|
12 |
|
|
namespace publish { |
13 |
|
|
|
14 |
|
|
class CmdZpipe : public Command { |
15 |
|
|
public: |
16 |
|
✗ |
virtual std::string GetName() const { return "zpipe"; } |
17 |
|
✗ |
virtual std::string GetBrief() const { |
18 |
|
✗ |
return "Compress and decompress data with zlib"; |
19 |
|
|
} |
20 |
|
✗ |
virtual std::string GetDescription() const { |
21 |
|
|
return "Compresses or decompresses a file using the DEFLATE algorithm.\n" |
22 |
|
✗ |
"Input comes on stdin, output goes to stdout."; |
23 |
|
|
} |
24 |
|
✗ |
virtual ParameterList GetParams() const { |
25 |
|
✗ |
ParameterList p; |
26 |
|
✗ |
p.push_back(Parameter::Switch("decompress", 'd', |
27 |
|
|
"Decompress input data (default is compression)")); |
28 |
|
✗ |
p.push_back(Parameter::Optional("input", 'i', "file", |
29 |
|
|
"Path to input file")); |
30 |
|
✗ |
return p; |
31 |
|
|
} |
32 |
|
✗ |
virtual bool IsHidden() const { return true; } |
33 |
|
|
|
34 |
|
|
virtual int Main(const Options &options); |
35 |
|
|
}; |
36 |
|
|
|
37 |
|
|
} // namespace publish |
38 |
|
|
|
39 |
|
|
#endif // CVMFS_PUBLISH_CMD_ZPIPE_H_ |
40 |
|
|
|