From 8e7974651069c424b4386011f66adec291dc5b97 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Tue, 28 Jul 2026 20:49:06 +0800 Subject: feat(example): add command macro example --- docs/example-pages/examples.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'docs') diff --git a/docs/example-pages/examples.json b/docs/example-pages/examples.json index 2a07365..349248e 100644 --- a/docs/example-pages/examples.json +++ b/docs/example-pages/examples.json @@ -94,6 +94,22 @@ "Cargo.toml" ] }, + { + "id": "example-command-macro", + "name": "Command Macro", + "icon": "🚀", + "category": "advanced", + "desc": "Introduced how to use the `#[command]` macro to generate commands with minimal boilerplate\n", + "tags": [ + "#[command]", + "dispatcher!", + "#[chain]" + ], + "files": [ + "src/main.rs", + "Cargo.toml" + ] + }, { "id": "example-completion", "name": "Completion", -- cgit