lib/pinpress.rb in pinpress-1.3.0 vs lib/pinpress.rb in pinpress-1.3.2
- old
+ new
@@ -142,19 +142,25 @@
tag_templates = configuration.tag_templates
messenger.section('AVAILABLE PIN TEMPLATES:')
if pin_templates
pin_templates.each_with_index do |template, index|
- messenger.info("#{ index + 1 }. #{ template[:name] }")
+ puts "#{ index + 1 }.\tName: ".blue + "#{ template[:name] }"
+ puts "Opener:".blue.rjust(22) + "\t#{ template[:opener] }".truncate(80)
+ puts "Item:".blue.rjust(22) + "\t#{ template[:item] }".truncate(80)
+ puts "Closer:".blue.rjust(22) + "\t#{ template[:closer] }".truncate(80)
end
else
messenger.warn('No templates defined...')
end
messenger.section('AVAILABLE TAG TEMPLATES:')
if tag_templates
tag_templates.each_with_index do |template, index|
- messenger.info("#{ index + 1 }. #{ template[:name] }")
+ puts "#{ index + 1 }.\tName: ".blue + "#{ template[:name] }"
+ puts "Opener:".blue.rjust(22) + "\t#{ template[:opener] }".truncate(80)
+ puts "Item:".blue.rjust(22) + "\t#{ template[:item] }".truncate(80)
+ puts "Closer:".blue.rjust(22) + "\t#{ template[:closer] }".truncate(80)
end
else
messenger.warn('No templates defined...')
end
end