Permalink
Browse files

* all calls should run through UI

  • Loading branch information...
1 parent 8392721 commit 1ab99293b93ad5c8bb452d18182f05d8c09eed76 @brandur committed Jul 26, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/facts/cli.rb
View
@@ -323,11 +323,11 @@ def new_from_temp_file
def output_categories(categories)
categories.each do |c|
- puts "#{C.underscore{ C.bold{ c.name } } } #{C.yellow{ c.id.to_s } } #{C.on_red{ c.slug}}"
+ Facts.ui.puts "#{C.underscore{ C.bold{ c.name } } } #{C.yellow{ c.id.to_s } } #{C.on_red{ c.slug}}"
if c.facts && c.facts.count > 0
output_facts(c.facts)
else
- puts ''
+ Facts.ui.puts ''
end
end
end
@@ -341,7 +341,7 @@ def output_facts(facts, standalone = false)
end
def output_ok
- puts "[ #{C.green{ 'OK' }} ]"
+ Facts.ui.puts "[ #{C.green{ 'OK' }} ]"
end
# Best effort to parse some Markdown for display in a terminal.

0 comments on commit 1ab9929

Please sign in to comment.