From 87044a747b47bd83249d61a45842c7f7b2eae56d Mon Sep 17 00:00:00 2001 From: soryu Date: Sun, 11 Jan 2026 05:52:14 +0000 Subject: Contract system --- makima/src/daemon/cli/daemon.rs | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 makima/src/daemon/cli/daemon.rs (limited to 'makima/src/daemon/cli/daemon.rs') diff --git a/makima/src/daemon/cli/daemon.rs b/makima/src/daemon/cli/daemon.rs new file mode 100644 index 0000000..de4cff4 --- /dev/null +++ b/makima/src/daemon/cli/daemon.rs @@ -0,0 +1,36 @@ +//! 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, + + /// Directory where repositories are cloned + #[arg(long, env = "MAKIMA_DAEMON_REPOS_DIR")] + pub repos_dir: Option, + + /// Directory where worktrees are created + #[arg(long, env = "MAKIMA_DAEMON_WORKTREES_DIR")] + pub worktrees_dir: Option, + + /// WebSocket server URL to connect to + #[arg(long, env = "MAKIMA_DAEMON_SERVER_URL")] + pub server_url: Option, + + /// API key for server authentication + #[arg(long, env = "MAKIMA_DAEMON_SERVER_APIKEY")] + pub api_key: Option, + + /// Maximum number of concurrent tasks + #[arg(long)] + pub max_tasks: Option, + + /// Log level (trace, debug, info, warn, error) + #[arg(short, long, default_value = "info")] + pub log_level: String, +} -- cgit v1.2.3