summaryrefslogtreecommitdiff
path: root/makima/src/bin/makima.rs
diff options
context:
space:
mode:
authorsoryu <soryu@soryu.co>2026-02-08 12:32:53 +0000
committersoryu <soryu@soryu.co>2026-02-08 12:32:53 +0000
commit657a8e55796c9f0cc6f30937de545ed91f052063 (patch)
tree7944d9e3a4d9e38216fd6358f85d1636d2f75d1e /makima/src/bin/makima.rs
parentf0a92073702d614302deff5e83c14ffec3ae6db0 (diff)
downloadsoryu-657a8e55796c9f0cc6f30937de545ed91f052063.tar.gz
soryu-657a8e55796c9f0cc6f30937de545ed91f052063.zip
Fixes for directive chain init
Diffstat (limited to 'makima/src/bin/makima.rs')
-rw-r--r--makima/src/bin/makima.rs10
1 files changed, 10 insertions, 0 deletions
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(())