diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-03-28 00:47:46 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-03-28 00:47:46 +0800 |
| commit | 7ce68cd11516bd7cf037ecea99a92aee7c31b2c3 (patch) | |
| tree | a3923ad41c91aa21fe169fd6b4b1bf8898a82589 /mingling/src/program/config.rs | |
Add initial Mingling framework codebase
Diffstat (limited to 'mingling/src/program/config.rs')
| -rw-r--r-- | mingling/src/program/config.rs | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/mingling/src/program/config.rs b/mingling/src/program/config.rs new file mode 100644 index 0000000..93507e7 --- /dev/null +++ b/mingling/src/program/config.rs @@ -0,0 +1,33 @@ +pub struct ProgramStdoutSetting { + /// Output error messages + pub error_output: bool, + + /// Render results and output + pub render_output: bool, +} + +impl Default for ProgramStdoutSetting { + fn default() -> Self { + ProgramStdoutSetting { + error_output: true, + render_output: true, + } + } +} + +pub struct ProgramUserContext { + /// View help information instead of running the command + pub help: bool, + + /// Skip user confirmation step + pub confirm: bool, +} + +impl Default for ProgramUserContext { + fn default() -> Self { + ProgramUserContext { + help: false, + confirm: false, + } + } +} |
