gritql
gritql copied to clipboard
Aliases for `--lang`
I'd like to be able to use aliases like py for the lang argument:
grit apply --lang py 'identifier()'
error: invalid value 'py' for '--language <LANGUAGE>'
[possible values: js, html, css, json, java, csharp, python, markdown, go, rust, ruby, solidity, hcl, yaml, sql, vue, toml, php, phponly]
tip: a similar value exists: 'python'
/bounty $20
looking at this - I don't see '--language' or 'invalid value' in the codebase - looking for the source for the CLI option grit apply
looks like cli/src/commands/apply.rs is the place
Here's my first stab at it: https://github.com/getgrit/gritql/pull/478
@itsdheerajdp Don't submit code you never ran. Until you actually validate that the command shared fixes the issue it isn't worth my time to review.
@algora-pbc /attempt #445