rustfs_cli/output/mod.rs
1//! Output formatting utilities
2//!
3//! This module provides formatters for CLI output in both human-readable
4//! and JSON formats. It also handles progress bars and colored output.
5
6mod formatter;
7mod progress;
8mod v3;
9
10// These exports will be used in Phase 2+ when commands are implemented
11#[allow(unused_imports)]
12pub use formatter::Formatter;
13#[allow(unused_imports)]
14pub use formatter::Theme;
15#[allow(unused_imports)]
16pub use progress::ProgressBar;
17pub use v3::{V3ErrorEnvelope, V3PartialErrorEnvelope, V3SuccessEnvelope};
18
19/// Output configuration derived from CLI flags
20#[derive(Debug, Clone, Default)]
21#[allow(dead_code)]
22pub struct OutputConfig {
23 /// Use JSON output format
24 pub json: bool,
25 /// Disable colored output
26 pub no_color: bool,
27 /// Disable progress bar
28 pub no_progress: bool,
29 /// Suppress non-error output
30 pub quiet: bool,
31}