Skip to content

Commit

Permalink
Remove .puts (for now)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexB52 committed Dec 1, 2024
1 parent 1993177 commit cbf32dd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions exe/retest
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down Expand Up @@ -57,18 +57,18 @@ 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)
runner.sync(added: added, removed: 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
Expand Down

0 comments on commit cbf32dd

Please sign in to comment.