aspect-cli icon indicating copy to clipboard operation
aspect-cli copied to clipboard

Query: Validate incoming labels before passing them to query

Open JesseTatasciore opened this issue 3 years ago • 1 comments

After prompting the user for a label, we should do some validation on it. If they typed it wrong (typo, colon in the wrong place, etc) we could help them out by suggesting a label with a minimal edit distance from what they typed.

✔ why: Determine why targetA depends on targetB
Value for 'targetA': 
Value for 'targetB': 
ERROR: Error while parsing 'somepath(, )': syntax error at ', )'

It is not super helpful to give the error from query evaluation when we already knew something was wrong.

JesseTatasciore avatar Jan 28 '22 14:01 JesseTatasciore

Should be part of #160

alexeagle avatar Mar 06 '22 14:03 alexeagle