From 596e5e2440df2d32f1cf3e052dc633e774edf6ee Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sun, 29 Mar 2026 21:48:23 +0800 Subject: Rename mingling to mingling_core and update dependencies --- mingling/src/program/setup/basic.rs | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 mingling/src/program/setup/basic.rs (limited to 'mingling/src/program/setup/basic.rs') diff --git a/mingling/src/program/setup/basic.rs b/mingling/src/program/setup/basic.rs deleted file mode 100644 index 43c14b9..0000000 --- a/mingling/src/program/setup/basic.rs +++ /dev/null @@ -1,31 +0,0 @@ -use crate::{ - ProgramCollect, - program::{Program, setup::ProgramSetup}, -}; - -/// Performs basic program initialization: -/// -/// - Collects `--quiet` flag to control message rendering -/// - Collects `--help` flag to enable help mode -/// - Collects `--confirm` flag to skip user confirmation -pub struct BasicProgramSetup; - -impl ProgramSetup for BasicProgramSetup -where - C: ProgramCollect, -{ - fn setup(&mut self, program: &mut Program) { - program.global_flag(["--quiet", "-q"], |p| { - p.stdout_setting.render_output = false; - p.stdout_setting.error_output = false; - }); - - program.global_flag(["--help", "-h"], |p| { - p.user_context.help = true; - }); - - program.global_flag(["--confirm", "-C"], |p| { - p.user_context.confirm = true; - }); - } -} -- cgit