summaryrefslogtreecommitdiff
path: root/makima/src/bin/makima.rs
diff options
context:
space:
mode:
authorsoryu <soryu@soryu.co>2026-02-07 18:27:54 +0000
committersoryu <soryu@soryu.co>2026-02-07 18:27:54 +0000
commit97e21c8296ec5f91912d56980ebf3b18a1ca3507 (patch)
tree3650e2eb62ab5b387006563ce64139aa7688da5f /makima/src/bin/makima.rs
parent8f757f561eeb397aaea70d7c10d41445cc5e50b5 (diff)
downloadsoryu-97e21c8296ec5f91912d56980ebf3b18a1ca3507.tar.gz
soryu-97e21c8296ec5f91912d56980ebf3b18a1ca3507.zip
Add directive monitor contracts
Diffstat (limited to 'makima/src/bin/makima.rs')
-rw-r--r--makima/src/bin/makima.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/makima/src/bin/makima.rs b/makima/src/bin/makima.rs
index 9d7f847..92fdae6 100644
--- a/makima/src/bin/makima.rs
+++ b/makima/src/bin/makima.rs
@@ -773,6 +773,20 @@ async fn run_directive(
let result = client.directive_start(args.directive_id).await?;
println!("{}", serde_json::to_string(&result.0)?);
}
+ DirectiveCommand::Evaluate(args) => {
+ let client = ApiClient::new(args.common.api_url, args.common.api_key)?;
+ let result = client
+ .directive_evaluate_step(args.common.directive_id, args.step_id)
+ .await?;
+ println!("{}", serde_json::to_string(&result.0)?);
+ }
+ DirectiveCommand::Evaluations(args) => {
+ let client = ApiClient::new(args.common.api_url, args.common.api_key)?;
+ let result = client
+ .directive_evaluations(args.common.directive_id, args.step_id)
+ .await?;
+ println!("{}", serde_json::to_string(&result.0)?);
+ }
}
Ok(())