Skip to content

Commit

Permalink
Only highlight warning header
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Jul 3, 2018
1 parent 65cf344 commit c81a242
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions lib/language_pack/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,18 @@ def default_process_types
def compile
write_release_yaml
instrument 'base.compile' do
Kernel.puts "\e[1m\e[33m" # Bold yellow
Kernel.puts ""
warnings.each do |warning|
Kernel.puts "###### WARNING:\n"
Kernel.puts "\e[1m\e[33m###### WARNING:\e[0m"# Bold yellow
Kernel.puts ""
puts warning
Kernel.puts ""
end
if deprecations.any?
topic "DEPRECATIONS:"
puts @deprecations.join("\n")
end
Kernel.puts "\e[0m"
Kernel.puts ""
end
mcount "success"
end
Expand Down
7 changes: 4 additions & 3 deletions lib/language_pack/shell_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,11 @@ def puts(message)

def warn(message, options = {})
if options.key?(:inline) ? options[:inline] : false
Kernel.puts "\e[1m\e[33m" # Bold yellow
Kernel.puts "###### WARNING:\n"
Kernel.puts ""
Kernel.puts "\e[1m\e[33m###### WARNING:\e[0m" # Bold yellow
Kernel.puts ""
puts message
Kernel.puts "\e[0m"
Kernel.puts ""
end
warnings << message
end
Expand Down

0 comments on commit c81a242

Please sign in to comment.