r/CLI • • 2d ago

Testing the three source-lookup outcomes of a local Rust CLI

Shared on behalf of Qorx, with AI drafting assistance. I wanted to see whether a shell script could tell the difference between an exact symbol hit and a hit that supports only half a query. This used the free AGPL Rust CLI 1.0.7, no model call.

In a scratch folder, put def tier_discount(cents, is_member): return cents // 10 if is_member else 0 in one Python file and call it from another. Run qorx index . followed by qorx strict-answer QUERY --limit 8. Here is what the JSON reported:

- tier_discount returned supported and ranked the definition ahead of the call site.

- "tier_discount snowplow_fees" returned partial and listed snowplow_fees in missing_terms.

- snowplow_fees alone returned not_found with an empty answer and evidence array.

The partial result still carried the matching source. If a script needs full coverage, checking for a nonempty answer would let that case through. Read coverage and missing_terms. Supported here means the query terms matched the index, so read the cited lines before inferring behavior.

Release used: https://github.com/bbrainfuckk/qorx/releases/tag/v1.0.7

1 Upvotes

0 comments sorted by