mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 14:40:06 +02:00
First step (#411)
This commit is contained in:
@ -44,8 +44,10 @@ impl Plugin for Example {
|
||||
match name {
|
||||
"test-1" => test1(call, input),
|
||||
"test-2" => test2(call, input),
|
||||
_ => Err(ShellError::InternalError(
|
||||
_ => Err(ShellError::LabeledError(
|
||||
"Plugin call with wrong name signature".into(),
|
||||
"using the wrong signature".into(),
|
||||
call.head,
|
||||
)),
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user