diff options
| author | soryu <soryu@soryu.co> | 2026-02-09 02:35:36 +0000 |
|---|---|---|
| committer | soryu <soryu@soryu.co> | 2026-02-09 02:35:36 +0000 |
| commit | a2646a828febbdac798a206655a15eae7e463bca (patch) | |
| tree | 7736396d87f6bf4dd50a2d3e91525534a36adf00 /makima/src/daemon/cli | |
| parent | 9c92d9235a0d1258fff9f7e625b0463c4952c45f (diff) | |
| download | soryu-a2646a828febbdac798a206655a15eae7e463bca.tar.gz soryu-a2646a828febbdac798a206655a15eae7e463bca.zip | |
Add directive init
Diffstat (limited to 'makima/src/daemon/cli')
| -rw-r--r-- | makima/src/daemon/cli/directive.rs | 11 | ||||
| -rw-r--r-- | makima/src/daemon/cli/mod.rs | 3 |
2 files changed, 14 insertions, 0 deletions
diff --git a/makima/src/daemon/cli/directive.rs b/makima/src/daemon/cli/directive.rs index 5de60ed..cd94a56 100644 --- a/makima/src/daemon/cli/directive.rs +++ b/makima/src/daemon/cli/directive.rs @@ -99,3 +99,14 @@ pub struct UpdateGoalArgs { /// New goal text pub goal: String, } + +/// Arguments for batch-add-steps command. +#[derive(Args, Debug)] +pub struct BatchAddStepsArgs { + #[command(flatten)] + pub common: DirectiveArgs, + + /// JSON array of steps: [{"name":"...","description":"...","taskPlan":"...","dependsOn":[],"orderIndex":0}] + #[arg(long)] + pub json: String, +} diff --git a/makima/src/daemon/cli/mod.rs b/makima/src/daemon/cli/mod.rs index faafaea..98923d9 100644 --- a/makima/src/daemon/cli/mod.rs +++ b/makima/src/daemon/cli/mod.rs @@ -243,6 +243,9 @@ pub enum DirectiveCommand { /// Update the directive's goal (triggers re-planning) UpdateGoal(directive::UpdateGoalArgs), + + /// Batch add multiple steps from JSON + BatchAddSteps(directive::BatchAddStepsArgs), } impl Cli { |
