MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / validate_codex_automation_flags

Function validate_codex_automation_flags

src/agent_cmd.rs:109–122  ·  view source on GitHub ↗
(
    agent: Option<&str>,
    automation: Option<CodexAutomationInstall>,
)

Source from the content-addressed store, hash-verified

107}
108
109fn validate_codex_automation_flags(
110 agent: Option<&str>,
111 automation: Option<CodexAutomationInstall>,
112) -> tracedecay::errors::Result<()> {
113 if automation.is_none() {
114 return Ok(());
115 }
116 if agent != Some("codex") {
117 return Err(tracedecay::errors::TraceDecayError::Config {
118 message: "`--automation` is only supported with `--agent codex`".to_string(),
119 });
120 }
121 Ok(())
122}
123
124fn validate_codex_automation_project_path() -> tracedecay::errors::Result<PathBuf> {
125 let project_path =

Callers 1

handle_install_commandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected