mirror of
https://github.com/nushell/nushell.git
synced 2025-07-02 23:51:49 +02:00
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:
@ -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,
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user