Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/herb/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def result
project.no_interactive = no_interactive
project.no_log_file = no_log_file
project.no_timing = no_timing
project.silent = silent
has_issues = project.parse!
exit(has_issues ? 1 : 0)
when "parse"
Expand Down
6 changes: 3 additions & 3 deletions lib/herb/project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

module Herb
class Project
attr_accessor :project_path, :output_file, :no_interactive, :no_log_file, :no_timing
attr_accessor :project_path, :output_file, :no_interactive, :no_log_file, :no_timing, :silent

def interactive?
return false if no_interactive
Expand Down Expand Up @@ -106,7 +106,7 @@ def parse!
else
relative_path = file_path.sub("#{project_path}/", "")
end
puts "Processing [#{index + 1}/#{files.count}]: #{relative_path}"
puts "Processing [#{index + 1}/#{files.count}]: #{relative_path}" unless silent

if interactive?
if failed_files.any?
Expand Down Expand Up @@ -240,7 +240,7 @@ def parse!
puts "Completed processing all files."
print "\e[H\e[2J"
else
puts "Completed processing all files."
puts "Completed processing all files." unless silent
end

log.puts ""
Expand Down
Loading