feat: add direct .trb file execution without intermediate files#37
Merged
feat: add direct .trb file execution without intermediate files#37
Conversation
Implements t-ruby command and trc run subcommand for running .trb files directly in memory without generating .rb or .rbs files, similar to Node.js's --experimental-strip-types. - Add bin/t-ruby executable as main entry point - Add lib/t_ruby/runner.rb with Thor-based CLI and Runner class - Add trc run command that delegates to t-ruby via exec - Add thor gem dependency for CLI implementation
3c8303f to
859cdeb
Compare
Remove conditional Ruby version check for listen gem to ensure Gemfile.lock contains the dependency for all Ruby versions.
- Add runner_spec.rb with tests for TRuby::Runner and TRuby::RunnerCLI - Add CLI tests for 'trc run' command delegation - Test file execution, ARGV passing, compile errors, and help/version
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #26
t-rubycommand as the main executable for running.trbfiles directlytrc runsubcommand that delegates tot-rubyvia exec.rbor.rbsfiles are generated - code runs in memory--experimental-strip-typesfunctionalityUsage
Test plan
t-ruby --helpshows help messaget-ruby --versionshows versiont-ruby hello.trbexecutes T-Ruby codet-ruby script.trb foo barpasses arguments to ARGVtrc run hello.trbdelegates to t-ruby