summaryrefslogtreecommitdiff
path: root/makima/src/daemon/cli/daemon.rs
blob: a8c0b4a720dd04c1cbbdab8d241b34c4166bf268 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//! Daemon subcommand - connect to server and manage tasks.

use clap::Args;
use std::path::PathBuf;

/// Run the makima daemon (connect to server and manage tasks).
#[derive(Args, Debug)]
pub struct DaemonArgs {
    /// Path to custom config file
    #[arg(short, long)]
    pub config: Option<PathBuf>,

    /// Directory where repositories are cloned
    #[arg(long, env = "MAKIMA_DAEMON_REPOS_DIR")]
    pub repos_dir: Option<PathBuf>,

    /// Directory where worktrees are created
    #[arg(long, env = "MAKIMA_DAEMON_WORKTREES_DIR")]
    pub worktrees_dir: Option<PathBuf>,

    /// WebSocket server URL to connect to
    #[arg(long, env = "MAKIMA_DAEMON_SERVER_URL")]
    pub server_url: Option<String>,

    /// API key for server authentication
    #[arg(long, env = "MAKIMA_DAEMON_SERVER_APIKEY")]
    pub api_key: Option<String>,

    /// Maximum number of concurrent tasks
    #[arg(long)]
    pub max_tasks: Option<u32>,

    /// Log level (trace, debug, info, warn, error)
    #[arg(short, long, default_value = "info")]
    pub log_level: String,

    /// Enable bubblewrap sandbox for Claude processes.
    /// Requires bwrap to be installed on the system.
    #[arg(long, env = "MAKIMA_DAEMON_BUBBLEWRAP")]
    pub bubblewrap: bool,

    /// Skip dependency checks on startup.
    /// Useful for CI/CD or when you know dependencies are installed.
    #[arg(long, env = "MAKIMA_DAEMON_SKIP_SETUP_CHECK")]
    pub skip_setup_check: bool,
}