Fix the sys command

This commit is contained in:
Jonathan Turner 2019-08-28 04:26:14 +12:00
parent f59b78a764
commit 4ebab3474b

View File

@ -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<Tagged<Value>> {
impl Plugin for Sys {
fn config(&mut self) -> Result<Signature, ShellError> {
Ok(Signature::build("sys").rest(SyntaxType::Any))
Ok(Signature::build("sys").filter())
}
fn begin_filter(&mut self, callinfo: CallInfo) -> Result<Vec<ReturnValue>, ShellError> {