Plugins signature load (#349)

* saving signatures to file

* loading plugin signature from file

* is_plugin column for help command
This commit is contained in:
Fernando Herrera
2021-11-19 02:51:42 +00:00
committed by GitHub
parent aa7226d5f6
commit 88988dc9f4
18 changed files with 215 additions and 27 deletions

View File

@ -114,6 +114,12 @@ fn help(
span: head,
});
cols.push("is_plugin".into());
vals.push(Value::Bool {
val: cmd.2,
span: head,
});
cols.push("usage".into());
vals.push(Value::String { val: c, span: head });
@ -157,6 +163,12 @@ fn help(
span: head,
});
cols.push("is_plugin".into());
vals.push(Value::Bool {
val: cmd.2,
span: head,
});
cols.push("usage".into());
vals.push(Value::String { val: c, span: head });

View File

@ -21,6 +21,7 @@ impl Command for Register {
SyntaxShape::Filepath,
"location of bin for plugin",
)
.optional("signature", SyntaxShape::Any, "plugin signature")
.category(Category::Core)
}