aboutsummaryrefslogtreecommitdiff
path: root/mingling/src/setups/picker/basic.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-07-19 00:21:23 +0800
committer魏曹先生 <1992414357@qq.com>2026-07-19 00:21:23 +0800
commit9b4cffd48482481691f782e74a4726294043bc57 (patch)
tree246fbac3d482e49e960e75d16dc52d1ae710d6cc /mingling/src/setups/picker/basic.rs
parent145e792e9bbda304312a9f5189bf033644e83263 (diff)
feat(picker): extract remains constant and consolidate imports
Move the inline `remains_arg` definition into a shared public constant `REMAINS` and update all consumers to import it from the new location.
Diffstat (limited to 'mingling/src/setups/picker/basic.rs')
-rw-r--r--mingling/src/setups/picker/basic.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/mingling/src/setups/picker/basic.rs b/mingling/src/setups/picker/basic.rs
index 0539a09..318edbd 100644
--- a/mingling/src/setups/picker/basic.rs
+++ b/mingling/src/setups/picker/basic.rs
@@ -1,7 +1,10 @@
-use arg_picker::{IntoPicker, PickerArg, PickerArgs, value::Flag};
+use arg_picker::{IntoPicker, PickerArg, value::Flag};
use mingling_core::{Program, ProgramCollect, setup::ProgramSetup};
-use crate::setups::picker::{CONFIRM_FLAG, HELP_FLAG, QUIET_FLAG};
+use crate::{
+ setup::picker::REMAINS,
+ setups::picker::{CONFIRM_FLAG, HELP_FLAG, QUIET_FLAG},
+};
/// Helper: picks a boolean flag from the program arguments, calls `f` with the
/// flag value, then replaces the program arguments with the remaining args.