<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mingling.git/mingling_macros/src/attr/command.rs, branch main</title>
<subtitle>用于开发多子命令的命令行框架
</subtitle>
<link rel='alternate' type='text/html' href='https://git.catilgrass.cn/mingling.git/'/>
<entry>
<title>fix(dispatch_tree): emit re-export token stream directly</title>
<updated>2026-07-28T12:42:08+00:00</updated>
<author>
<name>魏曹先生</name>
<email>1992414357@qq.com</email>
</author>
<published>2026-07-28T12:42:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.catilgrass.cn/mingling.git/commit/?id=16999dd66dc6162184790ef5480d483d0fb81f4a'/>
<id>16999dd66dc6162184790ef5480d483d0fb81f4a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>feat(attr): allow #[command] on functions with no args param</title>
<updated>2026-07-28T12:12:56+00:00</updated>
<author>
<name>魏曹先生</name>
<email>1992414357@qq.com</email>
</author>
<published>2026-07-28T12:12:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.catilgrass.cn/mingling.git/commit/?id=53033ae52c3b7a251fda2cadee46ae148cdb2846'/>
<id>53033ae52c3b7a251fda2cadee46ae148cdb2846</id>
<content type='text'>
Previously, #[command] required at least one owned parameter for
args injection.  Now, if the first parameter is a reference or
there are no parameters, a synthetic entry parameter is inserted
so the function can still be used with #[chain].
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, #[command] required at least one owned parameter for
args injection.  Now, if the first parameter is a reference or
there are no parameters, a synthetic entry parameter is inserted
so the function can still be used with #[chain].
</pre>
</div>
</content>
</entry>
<entry>
<title>feat(mingling_macros, mingling_pathf): add `#[command]` attribute macro</title>
<updated>2026-07-28T11:11:14+00:00</updated>
<author>
<name>魏曹先生</name>
<email>1992414357@qq.com</email>
</author>
<published>2026-07-28T11:11:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.catilgrass.cn/mingling.git/commit/?id=2dff21cc78fd2d6a4fa4f227f6ad94e3f7baa943'/>
<id>2dff21cc78fd2d6a4fa4f227f6ad94e3f7baa943</id>
<content type='text'>
Add a new `#[command]` attribute macro (feature-gated behind
`extra_macros`) that converts a plain function with a `Vec&lt;String&gt;`
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a new `#[command]` attribute macro (feature-gated behind
`extra_macros`) that converts a plain function with a `Vec&lt;String&gt;`
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.
</pre>
</div>
</content>
</entry>
</feed>
