idk why this isn't in master yet #94

Merged
cscherrNT merged 79 commits from devel into master 2024-07-22 13:30:20 +02:00
1 changed files with 23 additions and 1 deletions
Showing only changes of commit 3e5174dab6 - Show all commits

View File

@ -6,7 +6,29 @@
//! //!
//! Note that most of the utilities in this module are focused on communication with humans, not //! Note that most of the utilities in this module are focused on communication with humans, not
//! with machines. Consider evaluating [std::io::IsTerminal] before using colorful, dynamic and bordered //! with machines. Consider evaluating [std::io::IsTerminal] before using colorful, dynamic and bordered
//! printing. //! printing. If you are talking to a machine, it might be useful to not add extra space, add a
//! newline per output or even output JSON. An example that does this well is `ls`:
//!
//! ```bash
//! $ ls
//! Cargo.lock Cargo.toml data LICENSE members README.md scripts src target
//! ```
//!
//! ```bash
//! $ ls | cat
//! Cargo.lock
//! Cargo.toml
//! data
//! LICENSE
//! members
//! README.md
//! scripts
//! src
//! target
//! ```
//!
//! See the [CLI Rustbook](https://rust-cli.github.io/book/in-depth/machine-communication.html) for
//! more information on the topic.
use comfy_table::presets; use comfy_table::presets;
use comfy_table::{CellAlignment, ContentArrangement, Table}; use comfy_table::{CellAlignment, ContentArrangement, Table};