Re-exportsยง
use anstream::AutoStream;๐use anstyle::Style;๐use clap::ValueEnum;๐use eyre::Result;๐use serde::Deserialize;๐use serde::Deserialize;๐use serde::Serialize;๐use serde::Serialize;๐use std::fmt;๐use std::io::IsTerminal;๐use std::ops::DerefMut;๐use std::sync::Mutex;๐use std::sync::OnceLock;๐use std::sync::PoisonError;๐use std::sync::atomic::AtomicBool;๐use std::sync::atomic::Ordering;๐use super::style::*;๐use std::io::prelude::*;๐
Structsยง
- Shell
- An abstraction around console output that remembers preferences for output verbosity and color.
Enumsยง
- Color
Choice - Whether messages should use color output.
- Output
Format - The requested output format.
- Output
Mode - The requested output mode.
- Shell
Out ๐ - A
Writeable object, either with or without color support.
Staticsยง
- GLOBAL_
SHELL ๐ - The global shell instance.
Functionsยง
- color_
choice - Returns the current color choice.
- is_
err_ tty - Returns whether stderr is a terminal (tty).
- is_json
- Returns whether the output format is
OutputFormat::Json. - is_
markdown - Returns whether the output format is
OutputFormat::Markdown. - is_
out_ tty - Returns whether stdout is a terminal (tty).
- is_
quiet - Returns whether the output mode is
OutputMode::Quiet. - set_
verbosity - Set the verbosity level.
- supports_
color ๐ - verbosity
- Returns the currently set verbosity level.
Type Aliasesยง
- Verbosity
- The verbosity level.