| Crates.io | cli_fmt |
| lib.rs | cli_fmt |
| version | 0.3.0 |
| created_at | 2025-11-29 19:16:58.455548+00 |
| updated_at | 2025-12-19 21:15:42.607686+00 |
| description | CLI output formatting utilities for command-line applications |
| homepage | |
| repository | https://github.com/Wandalen/wTools |
| max_upload_size | |
| id | 1957297 |
| size | 49,656 |
CLI output formatting utilities for command-line applications.
This crate provides utilities specifically designed for building command-line applications, including output processing, formatting, and other CLI-specific helpers.
Responsibilities: Provides CLI-application-specific output processing utilities for command-line tools. Focuses on stream selection, line filtering (head/tail), and ANSI-aware width truncation. Delegates to strs_tools for general-purpose string and ANSI manipulation. Designed for command-line applications requiring output formatting and processing.
In Scope:
Out of Scope:
output - Process command output with head/tail filtering, width truncation, and stream merginguse cli_fmt::output::*;
let config = OutputConfig::default()
.with_head(10)
.with_width(80);
let result = process_output(stdout_str, stderr_str, &config);
println!("{}", result.content);
output - Output processing module (enabled by default)MIT