Skip to content

Commit

Permalink
Update svix-cli/src/main.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Jonas Platte <[email protected]>
  • Loading branch information
svix-onelson and svix-jplatte authored Dec 23, 2024
1 parent d1b582c commit b343fe6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions svix-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ struct Cli {

impl Cli {
/// Converts the selected `ColorChoice` from the CLI to a `ColorMode` as used by the JSON printer.
///
/// When the color choice is "auto", this considers whether stdout is a tty or not so that
/// color codes are only produced when actually writing directly to a terminal.
fn color_mode(&self) -> ColorMode {
Expand Down

0 comments on commit b343fe6

Please sign in to comment.