1 |
|
|
/** |
2 |
|
|
* This file is part of the CernVM File System. |
3 |
|
|
*/ |
4 |
|
|
|
5 |
|
|
#ifndef CVMFS_SWISSKNIFE_ZPIPE_H_ |
6 |
|
|
#define CVMFS_SWISSKNIFE_ZPIPE_H_ |
7 |
|
|
|
8 |
|
|
#include <string> |
9 |
|
|
|
10 |
|
|
#include "swissknife.h" |
11 |
|
|
|
12 |
|
|
namespace swissknife { |
13 |
|
|
|
14 |
|
|
class CommandZpipe : public Command { |
15 |
|
|
public: |
16 |
|
|
~CommandZpipe() { } |
17 |
|
|
virtual std::string GetName() const { return "zpipe"; } |
18 |
|
|
virtual std::string GetDescription() const { |
19 |
|
|
return "Compresses or decompresses a file using the DEFLATE algorithm.\n" |
20 |
|
|
"Input comes on stdin, output goes to stdout."; |
21 |
|
|
} |
22 |
|
|
virtual ParameterList GetParams() const { |
23 |
|
|
ParameterList r; |
24 |
|
|
r.push_back(Parameter::Switch('d', "decompress file")); |
25 |
|
|
return r; |
26 |
|
|
} |
27 |
|
|
virtual int Main(const ArgumentList &args); |
28 |
|
|
}; |
29 |
|
|
|
30 |
|
|
} // namespace swissknife |
31 |
|
|
|
32 |
|
|
#endif // CVMFS_SWISSKNIFE_ZPIPE_H_ |