diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-04-25 23:41:36 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-04-25 23:41:36 +0800 |
| commit | 4ac7d7dc9e6abec2f3f84dd5baf8b642727f19c3 (patch) | |
| tree | a36a182869f035e52ec7f6b7e64826d90869f438 /mingling_core/src/program.rs | |
| parent | 7625655d474f6f12e04a11a067f87287badce9f2 (diff) | |
Add help system with `#[help]` macro and `HelpRequest` trait
Diffstat (limited to 'mingling_core/src/program.rs')
| -rw-r--r-- | mingling_core/src/program.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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<Self::Enum>, r: &mut RenderResult); + /// Render help for Entry + fn render_help(any: AnyOutput<Self::Enum>, 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( |
