From 657a8e55796c9f0cc6f30937de545ed91f052063 Mon Sep 17 00:00:00 2001 From: soryu Date: Sun, 8 Feb 2026 12:32:53 +0000 Subject: Fixes for directive chain init --- makima/src/bin/makima.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'makima/src/bin') diff --git a/makima/src/bin/makima.rs b/makima/src/bin/makima.rs index 92fdae6..8115387 100644 --- a/makima/src/bin/makima.rs +++ b/makima/src/bin/makima.rs @@ -787,6 +787,16 @@ async fn run_directive( .await?; println!("{}", serde_json::to_string(&result.0)?); } + DirectiveCommand::SubmitPlan(args) => { + let client = ApiClient::new(args.api_url, args.api_key)?; + // Read plan JSON from stdin + let mut plan_json = String::new(); + io::stdin().read_to_string(&mut plan_json)?; + let result = client + .directive_submit_plan(args.directive_id, &plan_json) + .await?; + println!("{}", serde_json::to_string(&result.0)?); + } } Ok(()) -- cgit v1.2.3