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

Function looks_like_search_command

src/analytics.rs:266–268  ·  view source on GitHub ↗
(text: &str)

Source from the content-addressed store, hash-verified

264}
265
266fn looks_like_search_command(text: &str) -> bool {
267 text.starts_with("rg ") || text.contains(" rg ")
268}
269
270fn increment_family_usage(families: &mut BTreeMap<String, FamilyCounts>, family: &str) {
271 families.entry(family.to_string()).or_default().usage_events += 1;

Callers 1

record_tool_familyFunction · 0.85

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected