(
agent: Option<&str>,
profile: &Option<String>,
all_profiles: bool,
)
| 60 | } |
| 61 | |
| 62 | pub(crate) fn validate_hermes_profile_flags( |
| 63 | agent: Option<&str>, |
| 64 | profile: &Option<String>, |
| 65 | all_profiles: bool, |
| 66 | ) -> tracedecay::errors::Result<()> { |
| 67 | if profile.is_some() && agent != Some("hermes") { |
| 68 | return Err(tracedecay::errors::TraceDecayError::Config { |
| 69 | message: "`--profile` is only supported with `--agent hermes`".to_string(), |
| 70 | }); |
| 71 | } |
| 72 | if all_profiles && agent != Some("hermes") { |
| 73 | return Err(tracedecay::errors::TraceDecayError::Config { |
| 74 | message: "`--all-profiles` is only supported with `--agent hermes`".to_string(), |
| 75 | }); |
| 76 | } |
| 77 | Ok(()) |
| 78 | } |
| 79 | |
| 80 | pub(crate) fn validate_hermes_project_root_flag( |
| 81 | agent: Option<&str>, |
no outgoing calls