Skip to content

Conversation

paracycle
Copy link
Contributor

I've been finding it too cumbersome to keep passing one-off scripts via stdin. Seen as almost all similar Ruby tooling (ruby, ruby-parse, sorbet are a few examples) support passing inline scripts via an -e option, I figured that would be a good addition to this tool as well.

I implemented the option additively, so that passing in multiple -e options will pass in multiple scripts. Also, in contrast to how Ruby processes -e, I've chosen to process all files and scripts passed via the command-line.

@kddnewton
Copy link
Member

Nice!

@kddnewton kddnewton merged commit 1099498 into ruby-syntax-tree:main Aug 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants