forked from extern/nushell
Plugin json (#474)
* json encoder * thread to pass messages * description for example
This commit is contained in:
@ -19,9 +19,19 @@ impl Command for Register {
|
||||
.required(
|
||||
"plugin",
|
||||
SyntaxShape::Filepath,
|
||||
"location of bin for plugin",
|
||||
"path of executable for plugin",
|
||||
)
|
||||
.required_named(
|
||||
"encoding",
|
||||
SyntaxShape::String,
|
||||
"Encoding used to communicate with plugin. Options: [capnp, json]",
|
||||
Some('e'),
|
||||
)
|
||||
.optional(
|
||||
"signature",
|
||||
SyntaxShape::Any,
|
||||
"Block with signature description as json object",
|
||||
)
|
||||
.optional("signature", SyntaxShape::Any, "plugin signature")
|
||||
.category(Category::Core)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user