Skip to content

Commit

Permalink
Add some color to terminal output
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredcwhite committed Apr 27, 2020
1 parent 0dfc2b8 commit 9423c8e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions bridgetown-core/lib/bridgetown-core/commands/build.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def process(options)
# Adjust verbosity quickly
Bridgetown.logger.adjust_verbosity(options)

Bridgetown.logger.info "Starting:", "Bridgetown v#{Bridgetown::VERSION}" \
" (codename \"#{Bridgetown::CODE_NAME}\")"
Bridgetown.logger.info "Starting:", "Bridgetown v#{Bridgetown::VERSION.magenta}" \
" (codename \"#{Bridgetown::CODE_NAME.yellow}\")"

options = configuration_from_options(options)
@site = Bridgetown::Site.new(options)
Expand Down Expand Up @@ -66,7 +66,7 @@ def build(options)
(incremental ? "enabled" : "disabled. Enable with --incremental")
Bridgetown.logger.info "Generating…"
process_site(@site)
Bridgetown.logger.info "Done! 🎉", "Completed in #{(Time.now - t).round(3)} seconds."
Bridgetown.logger.info "Done! 🎉", "#{"Completed".green} in #{(Time.now - t).round(3)} seconds."
end

# Private: Watch for file changes and rebuild the site.
Expand Down
2 changes: 1 addition & 1 deletion bridgetown-core/lib/bridgetown-core/watcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def sleep_forever
def process(site, time)
begin
site.process
Bridgetown.logger.info "Done! 🎉", "Completed in #{(Time.now - time).round(3)} seconds."
Bridgetown.logger.info "Done! 🎉", "#{"Completed".green} in #{(Time.now - time).round(3)} seconds."
rescue StandardError => e
Bridgetown.logger.warn "Error:", e.message
Bridgetown.logger.warn "Error:", "Run bridgetown build --trace for more information."
Expand Down

0 comments on commit 9423c8e

Please sign in to comment.