brush-interactive 0.4.0

Interactive layer of brush-shell
Documentation
/// Options for a shell user interface.
#[derive(Default, bon::Builder)]
pub struct UIOptions {
    /// Whether to disable bracketed paste mode.
    #[builder(default)]
    pub disable_bracketed_paste: bool,
    /// Whether to disable color.
    #[builder(default)]
    pub disable_color: bool,
    /// Whether to disable syntax highlighting.
    #[builder(default)]
    pub disable_highlighting: bool,
    /// Whether to enable terminal integration.
    #[builder(default)]
    pub terminal_shell_integration: bool,
    /// Whether to enable zsh-style hooks.
    #[builder(default)]
    pub zsh_style_hooks: bool,
}

impl From<&UIOptions> for crate::InteractiveOptions {
    fn from(options: &UIOptions) -> Self {
        Self {
            terminal_shell_integration: options.terminal_shell_integration,
            run_cmd_exec_funcs: options.zsh_style_hooks,
            ..Default::default()
        }
    }
}