From 114e333d5ed669f66486008f83a9d206d253014d Mon Sep 17 00:00:00 2001 From: soryu Date: Thu, 15 Jan 2026 03:43:22 +0000 Subject: Add arg index for makima CLI --- makima/src/daemon/cli/supervisor.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/makima/src/daemon/cli/supervisor.rs b/makima/src/daemon/cli/supervisor.rs index 017730d..ebfb4bc 100644 --- a/makima/src/daemon/cli/supervisor.rs +++ b/makima/src/daemon/cli/supervisor.rs @@ -30,9 +30,11 @@ pub struct SpawnArgs { pub common: SupervisorArgs, /// Name of the task + #[arg(index = 1)] pub name: String, /// Plan/description for the task + #[arg(index = 2)] pub plan: String, /// Parent task ID to branch from @@ -55,10 +57,11 @@ pub struct WaitArgs { pub common: SupervisorArgs, /// Task ID to wait for + #[arg(index = 1)] pub task_id: Uuid, /// Timeout in seconds - #[arg(default_value = "300")] + #[arg(index = 2, default_value = "300")] pub timeout: i32, } @@ -69,9 +72,11 @@ pub struct ReadFileArgs { pub common: SupervisorArgs, /// Task ID to read from + #[arg(index = 1)] pub task_id: Uuid, /// File path to read + #[arg(index = 2)] pub file_path: String, } @@ -82,6 +87,7 @@ pub struct BranchArgs { pub common: SupervisorArgs, /// Branch name to create + #[arg(index = 1)] pub name: String, /// Reference (task ID or SHA) to branch from @@ -96,6 +102,7 @@ pub struct MergeArgs { pub common: SupervisorArgs, /// Task ID to merge + #[arg(index = 1)] pub task_id: Uuid, /// Target branch to merge into @@ -114,6 +121,7 @@ pub struct PrArgs { pub common: SupervisorArgs, /// Task ID to create PR for + #[arg(index = 1)] pub task_id: Uuid, /// PR title @@ -136,6 +144,7 @@ pub struct DiffArgs { pub common: SupervisorArgs, /// Task ID to get diff for + #[arg(index = 1)] pub task_id: Uuid, } @@ -146,6 +155,7 @@ pub struct CheckpointArgs { pub common: SupervisorArgs, /// Checkpoint message + #[arg(index = 1)] pub message: String, } @@ -156,6 +166,7 @@ pub struct AskArgs { pub common: SupervisorArgs, /// The question to ask + #[arg(index = 1)] pub question: String, /// Optional choices (comma-separated) -- cgit v1.2.3