pub fn render_rows_for_copy(rows: &[Row], settings: &RenderSettings) -> StringExpand description
Renders rows in plain copy-safe form.
Copy helpers intentionally bypass ANSI and rich terminal styling so the clipboard gets stable plain text.
ยงExamples
use osp_cli::core::output::OutputFormat;
use osp_cli::row;
use osp_cli::ui::{RenderSettings, render_rows_for_copy};
let rendered = render_rows_for_copy(
&[row! { "uid" => "alice" }],
&RenderSettings::test_plain(OutputFormat::Json),
);
assert!(rendered.contains("\"uid\": \"alice\""));