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
4// cspell:ignore docsrs
5#![cfg_attr(docsrs, feature(doc_cfg))]
6#![deny(missing_docs)]
7#![doc = include_str!("../README.md")]
8
9pub mod cache;
10#[cfg(feature = "color")]
11pub mod color;
12mod error;
13pub mod jose;
14pub mod json;
15pub mod parsing;
16
17pub use error::*;
18
19/// Whether to write color attributes to the terminal.
20#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
21pub enum ColorMode {
22    /// Write color attributes if `stdout` is a TTY and color is not otherwise disabled.
23    #[default]
24    Auto,
25
26    /// Always write color attributes.
27    Always,
28
29    /// Never write color attributes.
30    Never,
31}