Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
SyntaxSuggest::Cli.new
new(argv:, exit_obj: Kernel, io: $stdout, env: ENV)
lib/syntax_suggest/cli.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/syntax_suggest/cli.rb, line 20
def initialize(argv:, exit_obj: Kernel, io: $stdout, env: ENV)
@options = {}
@parser = nil
options[:record_dir] = env["SYNTAX_SUGGEST_RECORD_DIR"]
options[:record_dir] = "tmp" if env["DEBUG"]
options[:terminal] = SyntaxSuggest::DEFAULT_VALUE
@io = io
@argv = argv
@exit_obj = exit_obj
end
ARGV is Everything passed to the executable, does not include executable name
All other intputs are dependency injection for testing