lib/prj/app.rb in prj-0.0.2 vs lib/prj/app.rb in prj-0.1.0
- old
+ new
@@ -17,10 +17,10 @@
if @letters.empty?
@output.puts config.fetch("projects_root")
return 0
end
finder = Finder.new(config.fetch("projects_root"), config.fetch("vcs_directories"))
- filter = Filter.new(@letters)
+ filter = Filter.new(@letters, config.fetch("case_sensitive") { true })
directories = finder.find_project_directories
filtered_directories = filter.filter(directories)
target_directory = File.join(config.fetch("projects_root"), filtered_directories.first.to_s)
@output.puts target_directory
0