Permalink
Browse files

pickler search --full uses the show format

  • Loading branch information...
1 parent 087fa23 commit 22e0173442734ea0d6168d218ad8228f7fcd1f29 @tpope tpope committed Dec 11, 2008
Showing with 12 additions and 1 deletion.
  1. +12 −1 lib/pickler/runner.rb
View
@@ -249,6 +249,10 @@ def modifications
@iterations << :current?
end
+ on "--[no-]full", "show full story, not a summary line" do |b|
+ @full = b
+ end
+
process do |*argv|
argv << modifications unless modifications.empty?
if argv == [{:includedone => true}]
@@ -261,8 +265,15 @@ def modifications
stories.reject! {|s| !@iterations.any? {|i| s.send(i)}}
end
paginated_output do
+ first = true
stories.each do |story|
- puts_summary story
+ if @full
+ puts unless first
+ puts_full story
+ else
+ puts_summary story
+ end
+ first = false
end
end
end

0 comments on commit 22e0173

Please sign in to comment.