TNG / please-cli

An AI helper for creating CLI commands
Apache License 2.0
66 stars 16 forks source link

feat: only output error message if LLM returns no actionable command #53

Open corneliusroemer opened 2 weeks ago

corneliusroemer commented 2 weeks ago

The script now checks immediately if the returned command matches the designated failure message before proceeding with further actions like explanation or option printing.

This modification ensures that if the input prompt is unclear, the script directly outputs a clear error message and exits without executing additional unnecessary steps, aligning better with user expectations and reducing confusion.

This change improves user experience by providing immediate feedback on input validity and makes the script's flow more logical and efficient.

Resolves #52

Signed-off-by: Cornelius Roemer cornelius.roemer@gmail.com