mirror of
https://github.com/nushell/nushell.git
synced 2025-07-01 07:00:37 +02:00
Improve md5 and sha256 code (#3841)
* Refactor Hash code to simplify md5 and sha256 implementations Md5 and Sha256 (and other future digests) require less boilerplate code now. Error reporting includues the name of the hash again. * Add missing hash sha256 test
This commit is contained in:
@ -84,8 +84,8 @@ pub fn create_default_context(interactive: bool) -> Result<EvaluationContext, Bo
|
||||
// Text manipulation
|
||||
whole_stream_command(Hash),
|
||||
whole_stream_command(HashBase64),
|
||||
whole_stream_command(HashMd5),
|
||||
whole_stream_command(HashSha256),
|
||||
whole_stream_command(HashMd5::default()),
|
||||
whole_stream_command(HashSha256::default()),
|
||||
whole_stream_command(Split),
|
||||
whole_stream_command(SplitColumn),
|
||||
whole_stream_command(SplitRow),
|
||||
|
Reference in New Issue
Block a user