Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Colorize gitnesse output

  • Loading branch information...
commit 69ce8a9f5160f0467d71fef9f3592138709d148e 1 parent 80c9b9b
@stewart stewart authored
Showing with 5 additions and 5 deletions.
  1. +2 −2 lib/gitnesse/features.rb
  2. +3 −3 lib/gitnesse/wiki.rb
View
4 lib/gitnesse/features.rb
@@ -25,11 +25,11 @@ def self.gather(page_features)
features = ''
name, content = page_features.shift
- puts " # Pulling Feature: #{name}"
+ puts " \e[32m\e[1mPulling Feature: \e[0m#{name}"
features += content
page_features.each do |name, feature|
- puts " # WARNING! Discarding Feature: #{name}"
+ puts " \e[33m\e[1mDiscarding Feature: \e[0m#{name}"
end
features
View
6 lib/gitnesse/wiki.rb
@@ -148,7 +148,7 @@ def append_results(scenario)
def create_wiki_page(name, content)
new_page_content = build_page_content(content)
@wiki.write_page(name, :markdown, new_page_content, @commit_info)
- puts " # Created Page: #{name}"
+ puts " \e[32mCreated page \e[0m#{name}."
end
# Private: Updates a wiki page with the provided name and content
@@ -163,10 +163,10 @@ def update_wiki_page(wiki_page, page_name, feature_content)
new_page_content = build_page_content(feature_content, wiki_page_content)
if new_page_content == wiki_page_content
- puts " # Page #{page_name} didn't change"
+ puts " \e[32mPage \e[0m#{page_name} \e[32mdidn't change\e[0m."
else
@wiki.update_page(wiki_page, page_name, :markdown, new_page_content, @commit_info)
- puts " # Updated Page: #{page_name}"
+ puts " \e[33mUpdated page \e[0m#{page_name}."
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.