rho-coding-agent 3.11.0

A fast Rust agent harness with a small footprint and opinionated defaults
Documentation
use serde::{Deserialize, Serialize};

/// Whether the interactive TUI draws Nerd Font icons, such as a file-type
/// icon before a linked file path.
#[derive(Clone, Copy, Debug, Default, Deserialize, Serialize, PartialEq, Eq)]
#[serde(rename_all = "lowercase")]
pub enum IconMode {
    /// Icons in terminals known to ship Nerd Font symbols, outside tmux and
    /// screen.
    #[default]
    Auto,
    /// Icons outside minimal mode; the terminal's font must have Nerd Font
    /// symbols.
    Nerd,
    /// No icons.
    Plain,
}

impl IconMode {
    pub(crate) fn as_str(self) -> &'static str {
        match self {
            Self::Auto => "auto",
            Self::Nerd => "nerd",
            Self::Plain => "plain",
        }
    }
}