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:
chrnx committed 2026-09-24 12:54:51 -05:00
1 parent f2a3c16023
commit 3c3b7aaf8e
8 files changed
+383 -12

No files matched your search

+4 -1
View File
@@ -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")