diff --git a/src/plugins/sys.rs b/src/plugins/sys.rs index 00e4ca47d2..f22ed2a912 100644 --- a/src/plugins/sys.rs +++ b/src/plugins/sys.rs @@ -3,7 +3,7 @@ use futures::stream::StreamExt; use heim::{disk, memory, net}; use nu::{ serve_plugin, CallInfo, Plugin, Primitive, ReturnSuccess, ReturnValue, ShellError, Signature, - SyntaxType, Tag, Tagged, TaggedDictBuilder, Value, + Tag, Tagged, TaggedDictBuilder, Value, }; use std::ffi::OsStr; @@ -250,7 +250,7 @@ async fn sysinfo(tag: Tag) -> Vec> { impl Plugin for Sys { fn config(&mut self) -> Result { - Ok(Signature::build("sys").rest(SyntaxType::Any)) + Ok(Signature::build("sys").filter()) } fn begin_filter(&mut self, callinfo: CallInfo) -> Result, ShellError> {