From c171a2b8b7253bd0fb9c427a1076c3c548cd8bce Mon Sep 17 00:00:00 2001 From: Bruce Weirdan Date: Tue, 18 Jun 2024 17:34:18 +0200 Subject: [PATCH] Update `sys users` signature (#13172) Fixes #13171 # Description Corrects the `sys users` signature to match the returned type. Before this change `sys users | where name == root` would result in a type error. # User-Facing Changes # Tests + Formatting # After Submitting --- crates/nu-command/src/system/sys/users.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/nu-command/src/system/sys/users.rs b/crates/nu-command/src/system/sys/users.rs index 7d4a43cae51..04d9b9db914 100644 --- a/crates/nu-command/src/system/sys/users.rs +++ b/crates/nu-command/src/system/sys/users.rs @@ -13,7 +13,7 @@ impl Command for SysUsers { fn signature(&self) -> Signature { Signature::build("sys users") .category(Category::System) - .input_output_types(vec![(Type::Nothing, Type::record())]) + .input_output_types(vec![(Type::Nothing, Type::table())]) } fn usage(&self) -> &str {