gritql icon indicating copy to clipboard operation
gritql copied to clipboard

Aliases for --lang.

Open xonx4l opened this issue 1 year ago • 2 comments
trafficstars

Issue-: #445

Aliases for --lang.

Added the from_string_or_alias function to handle both full language names and their aliases.

Summary by CodeRabbit

  • New Features

    • Introduced a new method for creating PatternLanguage instances from string names and optional flavors, enhancing language identification flexibility.
  • Improvements

    • Updated existing methods to utilize the new method, streamlining the logic for language identification and improving maintainability.
    • Enhanced language pattern determination in the CLI by allowing for more flexible handling of language aliases and string representations.
    • Added support for additional programming languages with new pattern aliases, improving the robustness of language recognition.

xonx4l avatar Sep 06 '24 12:09 xonx4l