TNG / please-cli

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

feat: support case-insensitive input handling in menu selection #49

Open corneliusroemer opened 2 weeks ago

corneliusroemer commented 2 weeks ago

Modified the input handling mechanism to accept both uppercase and lowercase letters for menu navigation commands.

This change ensures the script can handle inputs more flexibly, accommodating both 'i' and 'I', 'c' and 'C', 'q' and 'Q', 'a' and 'A'.

This enhancement was prompted by user feedback that the interface displays uppercase letters for action prompts, leading to a natural expectation that uppercase inputs would be accepted (Issue #39).

This update aligns the script's functionality with user expectations, enhancing usability and accessibility during interactive sessions. Tested on MacOS 14.5 with bash v5.2 shell.

Resolves #39