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

Function validate_hermes_profile_flags

src/agent_cmd.rs:62–78  ·  view source on GitHub ↗
(
    agent: Option<&str>,
    profile: &Option<String>,
    all_profiles: bool,
)

Source from the content-addressed store, hash-verified

60}
61
62pub(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
80pub(crate) fn validate_hermes_project_root_flag(
81 agent: Option<&str>,

Calls

no outgoing calls