aboutsummaryrefslogtreecommitdiff
path: root/mingling_core/src/program.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-08-14 17:47:15 +0800
committer魏曹先生 <1992414357@qq.com>2026-08-14 18:02:09 +0800
commit9c8fe13c2629a4318bd12815c07cef1371ba85a2 (patch)
tree9e9af625832a1f872f5523dbf9d9730af0ef90c8 /mingling_core/src/program.rs
parentf3c134615c56dc7372e47a216dddca72250a3308 (diff)
feat(core): move config types to public config module
Refactor program configuration types into a dedicated public `config` module under `mingling_core`, making `StructuralRendererSetting` accessible via `mingling_core::config` instead of the crate root. Update all internal references and setup modules to use the new `config::` path convention.
Diffstat (limited to 'mingling_core/src/program.rs')
-rw-r--r--mingling_core/src/program.rs28
1 files changed, 17 insertions, 11 deletions
diff --git a/mingling_core/src/program.rs b/mingling_core/src/program.rs
index 3c4212c..86e3e83 100644
--- a/mingling_core/src/program.rs
+++ b/mingling_core/src/program.rs
@@ -2,41 +2,47 @@
#[cfg(not(windows))]
use std::env;
+#[cfg(feature = "structural_renderer")]
+use crate::config::StructuralRendererSetting;
use crate::{
- AnyOutput, GlobalResContainer, asset::dispatcher::Dispatcher, error::ChainProcessError,
+ AnyOutput, GlobalResContainer,
+ asset::dispatcher::Dispatcher,
+ config::{ProgramStdoutSetting, ProgramUserContext},
+ error::ChainProcessError,
hook::ProgramHook,
};
+pub mod config;
+
#[doc(hidden)]
pub mod error;
+
#[doc(hidden)]
pub mod exec;
-#[doc(hidden)]
-pub mod setup;
pub mod hook;
-mod collection;
-pub use collection::*;
-
-mod once_exec;
-
#[cfg(feature = "repl")]
#[doc(hidden)]
pub mod repl_exec;
+#[doc(hidden)]
+pub mod setup;
+
+mod collection;
+pub use collection::*;
+
mod single_instance;
pub use single_instance::*;
-mod config;
-pub use config::*;
-
mod flag;
pub use flag::*;
mod string_vec;
pub use string_vec::*;
+mod once_exec;
+
/// Program, used to define the behavior of the entire command-line program
#[derive(Default)]
pub struct Program<C>