akv_cli/
lib.rs

1// Copyright 2025 Heath Stewart.
2// Licensed under the MIT License. See LICENSE.txt in the project root for license information.
3
4pub mod cache;
5#[cfg(feature = "color")]
6pub mod color;
7pub mod credentials;
8mod error;
9pub mod jose;
10pub mod json;
11pub mod parsing;
12
13pub use error::*;
14
15/// Whether to write color attributes to the terminal.
16#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
17pub enum ColorMode {
18    /// Write color attributes if `stdout` is a TTY and color is not otherwise disabled.
19    #[default]
20    Auto,
21
22    /// Always write color attributes.
23    Always,
24
25    /// Never write color attributes.
26    Never,
27}