From cbf32ddf0cc9b4b22ef99b452b944caaadd1aaca Mon Sep 17 00:00:00 2001 From: Alexandre Barret Date: Mon, 2 Dec 2024 09:47:58 +1300 Subject: [PATCH] Remove .puts (for now) --- exe/retest | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/exe/retest b/exe/retest index e956d1b..a3a2861 100755 --- a/exe/retest +++ b/exe/retest @@ -5,7 +5,7 @@ require 'retest' $stdout.sync = true listen_rd, listen_wr = IO.pipe Signal.trap(:INT) do - $stdout.puts "Goodbye" + puts "Goodbye" listen_rd.close listen_wr.close exit @@ -14,12 +14,12 @@ end options = Retest::Options.new(ARGV) if options.help? - $stdout.puts options.help + puts options.help return end if options.version? - $stdout.puts Retest::VERSION + puts Retest::VERSION return end @@ -57,7 +57,7 @@ end # Main action -$stdout.puts launching_message +puts launching_message Retest.listen(options, listener: watcher) do |modified, added, removed| begin repository.sync(added: added, removed: removed) @@ -65,10 +65,10 @@ Retest.listen(options, listener: watcher) do |modified, added, removed| listen_wr.puts "file changed: #{(modified + added).first}" rescue => e - $stdout.puts "Something went wrong: #{e.message}" + puts "Something went wrong: #{e.message}" end end -$stdout.puts "Ready to refactor! You can make file changes now" +puts "Ready to refactor! You can make file changes now" def run_command(input:, program:) program.clear_terminal