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/src/lib.rs | |
| parent | 7625655d474f6f12e04a11a067f87287badce9f2 (diff) | |
Add help system with `#[help]` macro and `HelpRequest` trait
Diffstat (limited to 'mingling/src/lib.rs')
| -rw-r--r-- | mingling/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mingling/src/lib.rs b/mingling/src/lib.rs index d712ff0..5240682 100644 --- a/mingling/src/lib.rs +++ b/mingling/src/lib.rs @@ -84,6 +84,8 @@ pub mod macros { pub use mingling_macros::dispatcher_clap; /// Used to collect data and create a command-line context pub use mingling_macros::gen_program; + /// Used to generate a struct implementing the `HelpRequest` trait via a method + pub use mingling_macros::help; /// Used to create a `Node` struct via a literal pub use mingling_macros::node; /// Used to create a wrapper type for use with `Chain` and `Renderer` @@ -103,6 +105,8 @@ pub mod macros { pub use mingling_macros::r_println; /// Used to register a chain pub use mingling_macros::register_chain; + /// Used to register a help + pub use mingling_macros::register_help; /// Used to register a renderer pub use mingling_macros::register_renderer; /// Used to register a type into the context |
