Port hash, hash md5 and hash sha256 commands (#464)

`hash` by itself is only printing the help message.

The other two are simply using the same generic implementation.
This commit is contained in:
Benoît Cortier
2021-12-10 18:14:28 -05:00
committed by GitHub
parent 95841e3489
commit e77c6bb284
10 changed files with 408 additions and 49 deletions

View File

@ -49,6 +49,7 @@ pub enum Category {
Strings,
System,
Viewers,
Hash,
Custom(String),
}
@ -72,6 +73,7 @@ impl std::fmt::Display for Category {
Category::Strings => "strings",
Category::System => "system",
Category::Viewers => "viewers",
Category::Hash => "hash",
Category::Custom(name) => name,
};