mirror of
https://github.com/nushell/nushell.git
synced 2025-08-19 06:51:28 +02:00
"Add plugin arg errors. Bring remaining errors to parity"
This commit is contained in:
@@ -16,8 +16,6 @@ impl Plugin for BinaryView {
|
||||
Ok(CommandConfig {
|
||||
name: "binaryview".to_string(),
|
||||
positional: vec![],
|
||||
can_load: vec![],
|
||||
can_save: vec![],
|
||||
is_filter: false,
|
||||
is_sink: true,
|
||||
named: IndexMap::new(),
|
||||
|
@@ -18,8 +18,6 @@ impl Plugin for Inc {
|
||||
Ok(CommandConfig {
|
||||
name: "inc".to_string(),
|
||||
positional: vec![PositionalType::mandatory("Increment")],
|
||||
can_load: vec![],
|
||||
can_save: vec![],
|
||||
is_filter: true,
|
||||
is_sink: false,
|
||||
named: IndexMap::new(),
|
||||
|
@@ -18,8 +18,6 @@ impl Plugin for NewSkip {
|
||||
Ok(CommandConfig {
|
||||
name: "skip".to_string(),
|
||||
positional: vec![],
|
||||
can_load: vec![],
|
||||
can_save: vec![],
|
||||
is_filter: true,
|
||||
is_sink: false,
|
||||
named: IndexMap::new(),
|
||||
@@ -36,7 +34,7 @@ impl Plugin for NewSkip {
|
||||
} => {
|
||||
self.skip_amount = i;
|
||||
}
|
||||
_ => return Err(ShellError::string("Unrecognized type in params")),
|
||||
_ => return Err(ShellError::labeled_error("Unrecognized type in params", "expected an integer", arg.span)),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -85,8 +85,6 @@ impl Plugin for TreeViewer {
|
||||
Ok(CommandConfig {
|
||||
name: "tree".to_string(),
|
||||
positional: vec![],
|
||||
can_load: vec![],
|
||||
can_save: vec![],
|
||||
is_filter: false,
|
||||
is_sink: true,
|
||||
named: IndexMap::new(),
|
||||
|
Reference in New Issue
Block a user