diff options
| author | soryu <soryu@soryu.co> | 2026-01-15 03:43:22 +0000 |
|---|---|---|
| committer | soryu <soryu@soryu.co> | 2026-01-15 03:43:22 +0000 |
| commit | 114e333d5ed669f66486008f83a9d206d253014d (patch) | |
| tree | c1ce3177f329a5b8b9055f6ed3343302623e5eb6 | |
| parent | 3fe9a6c6b113d64c7a8409b5463026700be4c28c (diff) | |
| download | soryu-114e333d5ed669f66486008f83a9d206d253014d.tar.gz soryu-114e333d5ed669f66486008f83a9d206d253014d.zip | |
Add arg index for makima CLI
| -rw-r--r-- | makima/src/daemon/cli/supervisor.rs | 13 |
1 files changed, 12 insertions, 1 deletions
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) |
