class GitTopic::Commands::List
list command shows summarized topic information
Public Class Methods
new(options = {})
click to toggle source
# File lib/git_topic/commands/list.rb, line 10 def initialize(options = {}) @options = options @all = options[:all] end
Public Instance Methods
execute()
click to toggle source
# File lib/git_topic/commands/list.rb, line 15 def execute branches = ::GitTopic::Formatter::Branches.new @options branches.print return unless @all puts '' topics = ::GitTopic::Formatter::Topics.new topics.print end