aboutsummaryrefslogtreecommitdiff
path: root/mingling_pathf/src/patterns/command.rs
Commit message (Collapse)AuthorAgeFilesLines
* feat(mingling_macros, mingling_pathf): add `#[command]` attribute macro魏曹先生15 hours1-0/+81
Add a new `#[command]` attribute macro (feature-gated behind `extra_macros`) that converts a plain function with a `Vec<String>` parameter into a fully wired Mingling command. The macro generates a `dispatcher!` call, a `#[chain]` wrapper, and a hidden module re-exporting all generated types. Also add `CommandPattern` to the pathf pattern analyzer to recognize `#[command]`-annotated functions and track their generated hidden modules.