aboutsummaryrefslogtreecommitdiff
path: root/docs/example-pages/examples.json
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-07-28 20:49:06 +0800
committer魏曹先生 <1992414357@qq.com>2026-07-28 20:49:06 +0800
commit8e7974651069c424b4386011f66adec291dc5b97 (patch)
treec8debe5dcda253513370644ae04c71e6af3d5d4f /docs/example-pages/examples.json
parent16999dd66dc6162184790ef5480d483d0fb81f4a (diff)
feat(example): add command macro example
Diffstat (limited to 'docs/example-pages/examples.json')
-rw-r--r--docs/example-pages/examples.json16
1 files changed, 16 insertions, 0 deletions
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
@@ -95,6 +95,22 @@
]
},
{
+ "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",
"icon": "🔄",