Skip to content

Commit

Permalink
Look up files later
Browse files Browse the repository at this point in the history
This makes things better when watching
  • Loading branch information
joeldrapper committed Sep 2, 2024
1 parent 5826d2d commit 19025fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/quickdraw/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def parse_options
end

def parse_files
@files = Dir.glob(@args[0] || "./**/*.test.rb")
@files = @args[0] || "./**/*.test.rb"
end

def processes=(value)
Expand Down Expand Up @@ -117,7 +117,7 @@ def watch
Quickdraw::Run.new(
processes: 1,
threads: @threads || Quickdraw::Config.threads,
files: @files,
files: Dir.glob(@files),
seed: @seed || Random.new_seed,
).call
end,
Expand All @@ -134,7 +134,7 @@ def run_once
Quickdraw::Run.new(
processes: @processes || Quickdraw::Config.processes,
threads: @threads || Quickdraw::Config.threads,
files: @files,
files: Dir.glob(@files),
seed: @seed || Random.new_seed,
).call
end
Expand Down

0 comments on commit 19025fa

Please sign in to comment.