Skip to main content

agentctl/workflow/steps/
macos_agent.rs

1use super::automation::AutomationInvocation;
2use crate::workflow::schema::{AutomationStep, AutomationTool};
3
4pub fn build(step: &AutomationStep) -> AutomationInvocation {
5    let args = if step.args.is_empty() {
6        vec![
7            "--format".to_string(),
8            "json".to_string(),
9            "preflight".to_string(),
10        ]
11    } else {
12        step.args.clone()
13    };
14
15    AutomationInvocation::new(AutomationTool::MacosAgent, "macos-agent", args, Vec::new())
16}