mirror of
https://github.com/nushell/nushell.git
synced 2025-08-18 14:11:23 +02:00
plugin show signature (#6126)
* plugin show signature * remove expect from macro * use fold to create string
This commit is contained in:
@@ -13,6 +13,10 @@ use crate::{plugin::PluginEncoder, protocol::PluginResponse};
|
||||
pub struct CapnpSerializer;
|
||||
|
||||
impl PluginEncoder for CapnpSerializer {
|
||||
fn name(&self) -> &str {
|
||||
"Capnp Serializer"
|
||||
}
|
||||
|
||||
fn encode_call(
|
||||
&self,
|
||||
plugin_call: &crate::protocol::PluginCall,
|
||||
|
@@ -6,6 +6,10 @@ use crate::{plugin::PluginEncoder, protocol::PluginResponse};
|
||||
pub struct JsonSerializer;
|
||||
|
||||
impl PluginEncoder for JsonSerializer {
|
||||
fn name(&self) -> &str {
|
||||
"Json Serializer"
|
||||
}
|
||||
|
||||
fn encode_call(
|
||||
&self,
|
||||
plugin_call: &crate::protocol::PluginCall,
|
||||
|
Reference in New Issue
Block a user