Skip to main content

deepseek_rust_cli/
cli.rs

1use clap::{Parser, ValueEnum};
2
3#[derive(Parser, Debug)]
4#[command(author, version, about, long_about = None)]
5pub struct Args {
6    /// Session ID to resume
7    #[arg(short, long)]
8    pub session: Option<String>,
9
10    /// AI Model to use
11    #[arg(short, long)]
12    pub model: Option<String>,
13
14    /// Debug mode
15    #[arg(short, long)]
16    pub debug: bool,
17
18    /// Auto-approve all tools
19    #[arg(short, long)]
20    pub auto_approve: bool,
21
22    /// Accept invalid TLS certificates (for corporate proxies / MITM appliances)
23    #[arg(long)]
24    pub danger_accept_invalid_certs: bool,
25
26    /// Generate shell completions
27    #[arg(long, value_enum)]
28    pub generate_completion: Option<ShellType>,
29}
30
31#[derive(ValueEnum, Debug, Clone)]
32pub enum ShellType {
33    Bash,
34    Zsh,
35    Fish,
36    #[clap(name = "powershell")]
37    PowerShell,
38    #[clap(name = "elvish")]
39    Elvish,
40}