5 #ifndef CVMFS_PUBLISH_CMD_HASH_H_
6 #define CVMFS_PUBLISH_CMD_HASH_H_
16 virtual std::string
GetName()
const {
return "hash"; }
18 return "CernVM-FS hash functions";
21 return "Hash over a string or STDIN with one of the hash functions in "
27 "hash algorithm to use (e.g. shake128, sha1)"));
29 "data to hash over (instead of STDIN)"));
31 "print in fingerprint representation"));
33 "additionally print the hash as 64bit integer tuples"));
38 virtual int Main(
const Options &options);
43 #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