From 63f9e273b38d23f12184684cfe9d6d0d037b2f33 Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Wed, 25 Sep 2024 03:47:52 -0500 Subject: [PATCH] add binary as input to hash commands (#13923) # Description This allows `hash sha256` to support binary input. The code was there but the signature wasn't. closes #13916 --- crates/nu-command/src/hash/generic_digest.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/nu-command/src/hash/generic_digest.rs b/crates/nu-command/src/hash/generic_digest.rs index e94d484840..9da805d2c3 100644 --- a/crates/nu-command/src/hash/generic_digest.rs +++ b/crates/nu-command/src/hash/generic_digest.rs @@ -49,6 +49,7 @@ where .category(Category::Hash) .input_output_types(vec![ (Type::String, Type::Any), + (Type::Binary, Type::Any), (Type::table(), Type::table()), (Type::record(), Type::record()), ])