Skip to main content

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;
8pub mod qr;
9mod v3;
10
11// These exports will be used in Phase 2+ when commands are implemented
12#[allow(unused_imports)]
13pub use formatter::Formatter;
14#[allow(unused_imports)]
15pub use formatter::Theme;
16#[allow(unused_imports)]
17pub use progress::ProgressBar;
18pub use v3::{V3ErrorEnvelope, V3PartialErrorEnvelope, V3SuccessEnvelope};
19
20/// Output configuration derived from CLI flags
21#[derive(Debug, Clone, Default)]
22#[allow(dead_code)]
23pub struct OutputConfig {
24    /// Use JSON output format
25    pub json: bool,
26    /// Disable colored output
27    pub no_color: bool,
28    /// Disable progress bar
29    pub no_progress: bool,
30    /// Suppress non-error output
31    pub quiet: bool,
32}