Skip to main content

thndrs_lib/cli/commands/
debug.rs

1//! Bounded, redacted diagnostic log command definitions.
2
3use clap::Subcommand;
4
5/// Read local diagnostic logs without opening the TUI.
6#[derive(Clone, Debug, Eq, PartialEq, Subcommand)]
7pub enum DebugCommand {
8    /// Read the newest workspace daily log.
9    Tail {
10        /// Maximum log lines to print.
11        #[arg(long, default_value_t = 200)]
12        lines: usize,
13    },
14    /// Read the diagnostic log for one local session.
15    SessionLog {
16        /// Exact id or unique id prefix, without the `.jsonl` suffix.
17        session_id: String,
18        /// Maximum log lines to print.
19        #[arg(long, default_value_t = 200)]
20        lines: usize,
21    },
22}