From 4ac7d7dc9e6abec2f3f84dd5baf8b642727f19c3 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sat, 25 Apr 2026 23:41:36 +0800 Subject: Add help system with `#[help]` macro and `HelpRequest` trait --- mingling_core/src/program.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mingling_core/src/program.rs') diff --git a/mingling_core/src/program.rs b/mingling_core/src/program.rs index c9cffbe..949dd45 100644 --- a/mingling_core/src/program.rs +++ b/mingling_core/src/program.rs @@ -289,6 +289,9 @@ pub trait ProgramCollect { /// Render the input [AnyOutput](./struct.AnyOutput.html) fn render(any: AnyOutput, r: &mut RenderResult); + /// Render help for Entry + fn render_help(any: AnyOutput, r: &mut RenderResult); + /// Find a matching chain to continue execution based on the input [AnyOutput](./struct.AnyOutput.html), returning a new [AnyOutput](./struct.AnyOutput.html) #[cfg(feature = "async")] fn do_chain( -- cgit