aboutsummaryrefslogtreecommitdiff
path: root/mingling_core/src/program/config.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/config.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/config.rs')
-rw-r--r--mingling_core/src/program/config.rs24
1 files changed, 24 insertions, 0 deletions
diff --git a/mingling_core/src/program/config.rs b/mingling_core/src/program/config.rs
index 86b8c23..dae3f0a 100644
--- a/mingling_core/src/program/config.rs
+++ b/mingling_core/src/program/config.rs
@@ -1,4 +1,28 @@
// Doc Not Optimize
+
+//! Config module for program output settings and user context.
+//!
+//! This module provides configuration types and settings for controlling
+//! how the program outputs errors, rendered results, panic messages,
+//! verbosity levels, colors, progress indicators, and other user-defined
+//! context values used throughout the program lifecycle.
+//!
+//! The module includes the following items:
+//! - [`ErrorOutput`]: Output mode for error messages.
+//! - [`RenderOutput`]: Output mode for rendered results.
+//! - [`PanicSilence`]: Panic message handling.
+//! - [`Verbosity`]: Verbosity level for program output.
+//! - [`ColorOutput`]: Color output mode.
+//! - [`ProgressOutput`]: Progress indicator mode.
+//! - [`ProgramStdoutSetting`]: Program stdout settings.
+//! - [`ClapHelpPrintBehaviour`]: Behavior when Clap Dispatcher outputs help information.
+//! - [`ConfirmationMode`]: Confirmation mode for user prompts.
+//! - [`ExecutionMode`]: Execution mode.
+//! - [`InteractionMode`]: Interaction mode.
+//! - [`YesAssumption`]: Yes assumption mode for prompts.
+//! - [`ProgramUserContext`]: Program user context.
+//! - [`StructuralRendererSetting`]: Settings for the structural renderer output format.
+
/// Output mode for error messages
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum ErrorOutput {