feat(plugin): matcha create plugin scaffolds an in-app plugin and wires it
In-app is the default. Each plugin gets its own folder under plugins/
(or --folder), so it can be exported as a package later, and the
factory is registered in createApp({ plugins }). A plugins value that
is not an array literal is left alone with a hint, as modules already
is.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
8 files changed
+383
-12
No files matched your search
+4
-1
@@ -25,7 +25,10 @@ fn help_lists_all_subcommands() {
|
||||
#[test]
|
||||
fn create_and_add_advertise_every_value_they_accept() {
|
||||
for (command, values) in [
|
||||
("create", vec!["module", "controller", "step", "provider"]),
|
||||
(
|
||||
"create",
|
||||
vec!["module", "controller", "step", "provider", "plugin"],
|
||||
),
|
||||
("add", vec!["sse", "stream", "buffer", "ws", "upload"]),
|
||||
] {
|
||||
let mut assertion = Command::cargo_bin("matcha")
|
||||
|
||||
Reference in new issue
Block a user