From a5647e89bc5110a07c8f3c695c3c9582aa31d354 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sat, 16 May 2026 16:24:55 +0800 Subject: Simplify example imports to use prelude and add resources example Add a new example demonstrating global resource injection in chain functions, and update all existing examples to import from `mingling::prelude` instead of individual macro paths. Also add `example-resources` to the workspace exclude list. --- examples/example-completion/src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'examples/example-completion') diff --git a/examples/example-completion/src/main.rs b/examples/example-completion/src/main.rs index 3f1a377..8f1714c 100644 --- a/examples/example-completion/src/main.rs +++ b/examples/example-completion/src/main.rs @@ -34,11 +34,10 @@ //! 4. Write `main.rs`, adding completion logic for your command entry point //! 5. Execute `cargo install --path ./`, then run the corresponding completion script in your shell +use mingling::prelude::*; use mingling::{ EnumTag, Groupped, ShellContext, Suggest, - macros::{ - chain, completion, dispatcher, gen_program, r_println, renderer, suggest, suggest_enum, - }, + macros::{suggest, suggest_enum}, parser::{PickableEnum, Picker}, }; -- cgit