Hash hashFunction

Source

Hash get hashFunction {
  switch(values["hash-function"]) {
    case "sha256": return sha256;
    case "sha1": return sha1;
    case "md5": return md5;
    default: throw new CLIException("Value '${values["hash-function"]}' is not valid for option hash-function.");
  }
}