matrixcode-tui 0.4.27

MatrixCode TUI - Terminal UI library for AI Code Agent
Documentation
//! /debug command

use crate::commands::{Command, CommandContext};

pub struct DebugCommand;

impl Command for DebugCommand {
    fn name(&self) -> &'static str {
        "debug"
    }

    fn help(&self) -> Option<&'static str> {
        Some("Toggle debug mode")
    }

    fn execute(&self, ctx: &mut CommandContext, _args: &[&str]) {
        ctx.app.debug_mode = !ctx.app.debug_mode;
        ctx.auto_scroll();
    }
}