Skip to content

Commit

Permalink
Clears window manually instead of each action
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexB52 committed Dec 11, 2024
1 parent a9d7594 commit 4fcd8cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion exe/retest
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ end
puts "Ready to refactor! You can make file changes now"

def run_command(input:, program:)
program.clear_terminal
case input.strip
when /^file changed:\s(.*)$/
puts "File changed: #{$1}"
Expand Down Expand Up @@ -104,6 +103,8 @@ def run_command(input:, program:)
program.run_all
when /^di?f?f?\s(.*)$/
program.diff($1)
when 'c'
program.clear_terminal
when 'h', 'help'
puts <<~HELP
Expand All @@ -115,6 +116,7 @@ def run_command(input:, program:)
* 'f', 'force' # Forces a selection of test to run on every file change.
* 'r', 'reset' # Disables forced selection.
* 'd', 'diff' [GIT BRANCH] # Runs matching specs that changed from a target branch.
* 'c' # Clears window
* 'e', 'exit' # Exits Retest.
HELP
else
Expand Down

0 comments on commit 4fcd8cc

Please sign in to comment.