5 #ifndef CVMFS_PUBLISH_CMD_HASH_H_
6 #define CVMFS_PUBLISH_CMD_HASH_H_
16 virtual std::string
GetName()
const {
return "hash"; }
17 virtual std::string
GetBrief()
const {
return "CernVM-FS hash functions"; }
19 return "Hash over a string or STDIN with one of the hash functions in "
26 "hash algorithm to use (e.g. shake128, sha1)"));
28 "data to hash over (instead of STDIN)"));
30 "print in fingerprint representation"));
32 "split",
's',
"additionally print the hash as 64bit integer tuples"));
37 virtual int Main(
const Options &options);
42 #endif // CVMFS_PUBLISH_CMD_HASH_H_
virtual bool IsHidden() const
static Parameter Optional(const std::string &key, char short_key, const std::string &arg_name, const std::string &desc)
static Parameter Switch(const std::string &key, char short_key, const std::string &desc)
virtual std::string GetName() const
static Parameter Mandatory(const std::string &key, char short_key, const std::string &arg_name, const std::string &desc)
virtual std::string GetBrief() const
std::vector< Parameter > ParameterList
virtual ParameterList GetParams() const
virtual int Main(const Options &options)
virtual std::string GetDescription() const